<!DOCTYPE html><html class="hide-aside" lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><title>SAO UI Plan -- SAO Utils WEB 2.0 | Akilarの糖果屋</title><meta name="keywords" content="📁Hexo,🦋Butterfly,⚔️SAO UI Plan"><meta name="author" content="Akilar"><meta name="copyright" content="Akilar"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="2.0完全版本。置换网页右键菜单为SAO风格UI。支持自定义脚本动作。Link Start !"><meta property="og:type" content="article"><meta property="og:title" content="SAO UI Plan -- SAO Utils WEB 2.0"><meta property="og:url" content="https://akilar.top/posts/fd243d7/"><meta property="og:site_name" content="Akilarの糖果屋"><meta property="og:description" content="2.0完全版本。置换网页右键菜单为SAO风格UI。支持自定义脚本动作。Link Start !"><meta property="og:locale" content="zh_CN"><meta property="og:image" content="https://npm.elemecdn.com/akilar-candyassets/image/SAO-Utils-WEB-2-0-14cc7620.png"><meta property="article:published_time" content="2021-01-29T10:16:12.000Z"><meta property="article:modified_time" content="2021-12-19T18:29:12.000Z"><meta property="article:author" content="Akilar"><meta property="article:tag" content="📁Hexo"><meta property="article:tag" content="🦋Butterfly"><meta property="article:tag" content="⚔️SAO UI Plan"><meta name="twitter:card" content="summary"><meta name="twitter:image" content="https://npm.elemecdn.com/akilar-candyassets/image/SAO-Utils-WEB-2-0-14cc7620.png"><link rel="shortcut icon" href="https://npm.elemecdn.com/akiblog@1.0.1/img/siteicon/favicon.png"><link rel="canonical" href="https://akilar.top/posts/fd243d7/" media="defer" onload='this.media="all"'><link rel="preconnect" href="//cdn.jsdelivr.net"><link rel="preconnect" href="//at.alicdn.com/"><link rel="preconnect" href="//cdnjs.cloudflare.com/"><link rel="preconnect" href="//sdk.51.la"><meta name="google_site_verification" content="INnh6jnldNB3hxjSoa9ut7Kd9xX9R6Mqe7807EJsbCc"><meta name="baidu-site-verification" content="code-6O1kXu3a70"><meta name="msvalidate.01" content="3A07763DBFF970229752E8DF7999C30D"><link rel="manifest" href="/manifest.json"><link rel="apple-touch-icon" sizes="180x180" href="https://npm.elemecdn.com/akiblog@1.0.1/img/image/siteicon/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="https://npm.elemecdn.com/akiblog@1.0.1/img/siteicon/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="https://npm.elemecdn.com/akiblog@1.0.1/img/siteicon/favicon-16x16.png"><link rel="mask-icon" href="https://npm.elemecdn.com/akiblog@1.0.1/img/siteicon/safari-pinned-tab.svg" color="#5bbad5"><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://npm.elemecdn.com/@fortawesome/fontawesome-free@6.1.2/css/all.min.css" media="print" onload='this.media="all"'><link rel="stylesheet" href="https://npm.elemecdn.com/node-snackbar@0.1.16/dist/snackbar.min.css" media="print" onload='this.media="all"'><div class="js-pjax"><script charset="UTF-8" id="LA_COLLECT" src="https://sdk.51.la/js-sdk-pro.min.js"></script><script>LA.init({id:"JdyxkljyWpUOuTqt",ck:"JdyxkljyWpUOuTqt"})</script></div><script src="https://sdk.51.la/perf/js-sdk-perf.min.js" crossorigin="anonymous"></script><script>(new LingQue.Monitor).init({id:"JdzAJUCrdUGoOC7D"})</script><link rel="stylesheet" href="https://npm.elemecdn.com/akiblog@1.0.1/css/animate.min.css" media="print" onload='this.media="screen"'><link rel="stylesheet" href="https://npm.elemecdn.com/swiper@8.4.2/swiper-bundle.min.css" media="print" onload='this.media="all"'><script>const GLOBAL_CONFIG={root:"/",algolia:{appId:"STO7Z288QA",apiKey:"dbcfd77c89c49f19b42d68e572943881",indexName:"akilar",hits:{per_page:3},languages:{input_placeholder:"搜索文章",hits_empty:"找不到您查询的内容：${query}",hits_stats:"找到 ${hits} 条结果，用时 ${time} 毫秒"}},localSearch:void 0,translate:{defaultEncoding:2,translateDelay:0,msgToTraditionalChinese:"<i>繁</i><sapn>簡繁轉換</span>",msgToSimplifiedChinese:"<i>简</i><sapn>简繁转换</span>"},noticeOutdate:{limitDay:30,position:"top",messagePrev:"It has been",messageNext:"days since the last update, the content of the article may be outdated."},highlight:{plugin:"highlighjs",highlightCopy:!0,highlightLang:!0,highlightHeightLimit:130},copy:{success:"吾辈宣布你的剪贴板已经被我占领啦！",error:"抱歉，复制好像出了点问题。",noSupport:"你的浏览器好像不支持"},relativeDate:{homepage:!1,post:!1},runtime:"天",date_suffix:{just:"刚刚",min:"分钟前",hour:"小时前",day:"天前",month:"个月前"},copyright:void 0,lightbox:"mediumZoom",Snackbar:{chs_to_cht:"你已切换为繁体",cht_to_chs:"你已切换为简体",day_to_night:"你已切换为深色模式",night_to_day:"你已切换为浅色模式",bgLight:"#49B1F5",bgDark:"#1f1f1f",position:"top-center"},source:{justifiedGallery:{js:"https://npm.elemecdn.com/flickr-justified-gallery@2.1.2/dist/fjGallery.min.js",css:"https://npm.elemecdn.com/flickr-justified-gallery@2.1.2/dist/fjGallery.css"}},isPhotoFigcaption:!0,islazyload:!0,isAnchor:!1}</script><script id="config-diff">var GLOBAL_CONFIG_SITE={title:"SAO UI Plan -- SAO Utils WEB 2.0",isPost:!0,isHome:!1,isHighlightShrink:!1,isToc:!0,postUpdate:"2021-12-19 18:29:12"}</script><noscript><style>#nav{opacity:1}.justified-gallery img{opacity:1}#post-meta time,#recent-posts time{display:inline!important}</style></noscript><script>(e=>{e.saveToLocal={set:function(e,t,o){if(0===o)return;const a=864e5*o,n={value:t,expiry:(new Date).getTime()+a};localStorage.setItem(e,JSON.stringify(n))},get:function(e){const t=localStorage.getItem(e);if(!t)return;const o=JSON.parse(t);if(!((new Date).getTime()>o.expiry))return o.value;localStorage.removeItem(e)}},e.getScript=e=>new Promise((t,o)=>{const a=document.createElement("script");a.src=e,a.async=!0,a.onerror=o,a.onload=a.onreadystatechange=function(){const e=this.readyState;e&&"loaded"!==e&&"complete"!==e||(a.onload=a.onreadystatechange=null,t())},document.head.appendChild(a)}),e.activateDarkMode=function(){document.documentElement.setAttribute("data-theme","dark"),null!==document.querySelector('meta[name="theme-color"]')&&document.querySelector('meta[name="theme-color"]').setAttribute("content","#0d0d0d")},e.activateLightMode=function(){document.documentElement.setAttribute("data-theme","light"),null!==document.querySelector('meta[name="theme-color"]')&&document.querySelector('meta[name="theme-color"]').setAttribute("content","#ffffff")};const t=saveToLocal.get("theme"),o=(new Date).getHours();void 0===t?o<=6||o>=18?activateDarkMode():activateLightMode():"light"===t?activateLightMode():activateDarkMode();const a=saveToLocal.get("aside-status");void 0!==a&&("hide"===a?document.documentElement.classList.add("hide-aside"):document.documentElement.classList.remove("hide-aside"));/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)&&document.documentElement.classList.add("apple")})(window)</script><link rel="stylesheet" href="https://npm.elemecdn.com/akiblog@1.0.1/css/custom.css" media="defer" onload='this.media="all"'><link rel="stylesheet" href="https://widget.heweather.net/simple/static/css/he-simple.css?v=1.4.0" media="defer" onload='this.media="all"'><script src="https://npm.elemecdn.com/akiblog@1.0.1/js/custom/SAO-Notify.js" async></script><script async src="https://npm.elemecdn.com/akiblog@1.0.1/js/custom/carousel-touch.js"></script><svg aria-hidden="true" style="position:absolute;overflow:hidden;width:0;height:0"><symbol id="icon-sun" viewBox="0 0 1024 1024"><path d="M960 512l-128 128v192h-192l-128 128-128-128H192v-192l-128-128 128-128V192h192l128-128 128 128h192v192z" fill="#FFD878" p-id="8420"></path><path d="M736 512a224 224 0 1 0-448 0 224 224 0 1 0 448 0z" fill="#FFE4A9" p-id="8421"></path><path d="M512 109.248 626.752 224H800v173.248L914.752 512 800 626.752V800h-173.248L512 914.752 397.248 800H224v-173.248L109.248 512 224 397.248V224h173.248L512 109.248M512 64l-128 128H192v192l-128 128 128 128v192h192l128 128 128-128h192v-192l128-128-128-128V192h-192l-128-128z" fill="#4D5152" p-id="8422"></path><path d="M512 320c105.888 0 192 86.112 192 192s-86.112 192-192 192-192-86.112-192-192 86.112-192 192-192m0-32a224 224 0 1 0 0 448 224 224 0 0 0 0-448z" fill="#4D5152" p-id="8423"></path></symbol><symbol id="icon-moon" viewBox="0 0 1024 1024"><path d="M611.370667 167.082667a445.013333 445.013333 0 0 1-38.4 161.834666 477.824 477.824 0 0 1-244.736 244.394667 445.141333 445.141333 0 0 1-161.109334 38.058667 85.077333 85.077333 0 0 0-65.066666 135.722666A462.08 462.08 0 1 0 747.093333 102.058667a85.077333 85.077333 0 0 0-135.722666 65.024z" fill="#FFB531" p-id="11345"></path><path d="M329.728 274.133333l35.157333-35.157333a21.333333 21.333333 0 1 0-30.165333-30.165333l-35.157333 35.157333-35.114667-35.157333a21.333333 21.333333 0 0 0-30.165333 30.165333l35.114666 35.157333-35.114666 35.157334a21.333333 21.333333 0 1 0 30.165333 30.165333l35.114667-35.157333 35.157333 35.157333a21.333333 21.333333 0 1 0 30.165333-30.165333z" fill="#030835" p-id="11346"></path></symbol></svg><link rel="stylesheet" href="https://npm.elemecdn.com/hexo-filter-gitcalendar/lib/gitcalendar.css" media="print" onload='this.media="all"'><meta name="generator" content="Hexo 6.2.0"><link rel="alternate" href="/atom.xml" title="Akilarの糖果屋" type="application/atom+xml"></head><body><div id="loading-box"><div class="ark-loading" id="ark-loading"><div class="ark-loading-top-container"><div class="ark-loading-top-left-flash"></div><div class="ark-loading-top-left-border"></div><div class="ark-loading-top-triangle"></div><div class="ark-loading-top-right-border"></div><div class="ark-loading-top-right-flash"></div></div><div class="ark-loading-bottom-container"><div class="ark-loading-bottom-left-border"></div><div class="ark-loading-bottom-left-triangle"></div><div class="ark-loading-bottom-center-border"></div><div class="ark-loading-bottom-right-triangle"></div><div class="ark-loading-bottom-right-border"></div></div><div class="ark-loading-main-container"><div class="ark-loading-content"><div class="ark-loading-power-left"></div><div class="ark-loading-center-left-border"></div><div class="ark-loading-cab-outside-border"><div class="ark-loading-cab-insideborder"><div class="ark-loading-cab-container"><div class="ark-loading-percentage"></div><div class="ark-loading-tip"></div></div></div></div><div class="ark-loading-center-right-border"></div><div class="ark-loading-power-right"></div></div></div></div></div><div id="web_bg"></div><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="" data-lazy-src="https://npm.elemecdn.com/akiblog@1.0.1/img/author.webp" onerror='onerror=null,src="https://npm.elemecdn.com/akiblog@1.0.1/img/404.gif"' alt="avatar"></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">480</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">63</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">6</div></a></div><hr><div class="menus_items"><div class="menus_item"><a class="site-page faa-parent animated-hover" href="/"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-laptop"></use></svg> <span>博客</span></a></div><div class="menus_item"><a class="site-page faa-parent animated-hover" href="/archives/"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-Calendar"></use></svg> <span>时间轴</span></a></div><div class="menus_item"><a class="site-page faa-parent animated-hover" href="/tags/"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-strategy"></use></svg> <span>标签</span></a></div><div class="menus_item"><a class="site-page faa-parent animated-hover" href="/fcircle/"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-forumdiscusstion"></use></svg> <span>朋友圈</span></a></div><div class="menus_item"><a class="site-page faa-parent animated-hover" href="/link/"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-connection"></use></svg> <span>友人帐</span></a></div><div class="menus_item"><a class="site-page faa-parent animated-hover" href="/comments/"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-letter"></use></svg> <span>留言板</span></a></div><div class="menus_item"><a class="site-page group faa-parent animated-hover" href="javascript:void(0);" rel="external nofollow noreferrer"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-hourglass"></use></svg> <span>生活</span><i class="fas fa-chevron-down expand"></i></a><ul class="menus_item_child"><li><a class="faa-parent animated-hover site-page child" href="/gallery/"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-strategy"></use></svg> <span>相册</span></a></li><li><a class="faa-parent animated-hover site-page child" href="/bangumis/"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-unicorn"></use></svg> <span>追番</span></a></li><li><a class="faa-parent animated-hover site-page child" href="/about/"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-Achievement"></use></svg> <span>关于</span></a></li></ul></div><div class="menus_item"><a class="site-page faa-parent animated-hover" href="javascript:toRandomPost()" rel="external nofollow noreferrer"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-teamwork"></use></svg> <span>随便看看</span></a></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header" style="background-image:url(https://npm.elemecdn.com/akilar-candyassets/image/SAO-Utils-WEB-2-0-14cc7620.png)"><div class="menu-container" id="menu-container"><div class="menu-item"><div class="menu-item-main"><a class="site-page faa-parent animated-hover" href="/"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-laptop"></use></svg> <span>博客</span></a></div><div class="menu-item-main"><a class="site-page faa-parent animated-hover" href="/archives/"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-Calendar"></use></svg> <span>时间轴</span></a></div><div class="menu-item-main"><a class="site-page faa-parent animated-hover" href="/tags/"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-strategy"></use></svg> <span>标签</span></a></div><div class="menu-item-main"><a class="site-page faa-parent animated-hover" href="/fcircle/"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-forumdiscusstion"></use></svg> <span>朋友圈</span></a></div><div class="menu-item-main"><a class="site-page faa-parent animated-hover" href="/link/"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-connection"></use></svg> <span>友人帐</span></a></div><div class="menu-item-main"><a class="site-page faa-parent animated-hover" href="/comments/"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-letter"></use></svg> <span>留言板</span></a></div><div class="menu-item-main has-child"><div class="menu-item-parent"><a class="site-page faa-parent animated-hover" href="javascript:void(0);" rel="external nofollow noreferrer"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-hourglass"></use></svg> <span>生活</span></a></div><div class="menu-item-child"><a class="faa-parent animated-hover site-page child" href="/gallery/"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-strategy"></use></svg> <span>相册</span></a></div><div class="menu-item-child"><a class="faa-parent animated-hover site-page child" href="/bangumis/"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-unicorn"></use></svg> <span>追番</span></a></div><div class="menu-item-child"><a class="faa-parent animated-hover site-page child" href="/about/"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-Achievement"></use></svg> <span>关于</span></a></div></div><div class="menu-item-main"><a class="site-page faa-parent animated-hover" href="javascript:toRandomPost()" rel="external nofollow noreferrer"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-teamwork"></use></svg> <span>随便看看</span></a></div></div><div class="top-bar"><div class="message-container"><div class="message-item message-weather" onclick="btf.scrollToDest(0,500)"><div class="message-weather-box" id="he-plugin-simple"></div></div><div class="message-item message-date" onclick="Navvisible()"><div class="message-date-box" id="message-date-box"></div><div class="message-title-box" id="message-title-box"><a id="site-name" title="2.0完全版本。置换网页右键菜单为SAO风格UI。支持自定义脚本动作。Link Start !">刀剑神域风格右键菜单2.0</a></div></div><div class="message-item message-function"><div id="search-button"><a class="site-page social-icon search faa-parent animated-hover"><svg class="faa-tada icon" style="height:25px;width:25px" aria-hidden="true"><use xlink:href="#icon-analitic"></use></svg> <span>搜索</span></a></div><a class="icon-V hidden faa-parent animated-hover" onclick="switchNightMode()" title="昼夜切换"><svg class="faa-tada" width="25" height="25" viewBox="0 0 1024 1024"><use id="modeicon" xlink:href="#icon-moon"></use></svg></a><div id="toggle-menu"><a class="site-page faa-parent animated-hover"><svg class="faa-tada icon" style="height:25px;width:25px" aria-hidden="true"><use xlink:href="#icon-MobileApps"></use></svg></a></div></div></div></div><button class="active-button" onclick="Navvisible()"></button></div><div id="post-info"><h1 class="post-title">SAO UI Plan -- SAO Utils WEB 2.0<a class="post-edit-link" href="https://github.com/Akilarlxh/Hexo-blog-source/edit/master/source/_posts/Akilarの糖葫芦/美化日记/SAO-Utils-WEB-2-0.md" rel="external nofollow noreferrer" title="编辑" target="_blank"><i class="fas fa-feather-alt faa-tada animated-hover"></i></a></h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2021-01-29T10:16:12.000Z" title="发表于 2021-01-29 10:16:12">2021-01-29</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2021-12-19T18:29:12.000Z" title="更新于 2021-12-19 18:29:12">2021-12-19</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/%F0%9F%8D%A1Akilar%E3%81%AE%E7%B3%96%E8%91%AB%E8%8A%A6/">🍡Akilarの糖葫芦</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-wordcount"><i class="far fa-file-word fa-fw post-meta-icon"></i><span class="post-meta-label">字数总计:</span><span class="word-count">9.6k</span><span class="post-meta-separator">|</span><i class="far fa-clock fa-fw post-meta-icon"></i><span class="post-meta-label">阅读时长:</span><span>41分钟</span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><details class="folding-tag" cyan><summary>点击查看更新记录</summary><div class="content"><div class="timeline undefined"><div class="timeline-item headline"><div class="timeline-item-title"><div class="item-circle"><p>更新记录</p></div></div></div><div class="timeline-item"><div class="timeline-item-title"><div class="item-circle"><p>2021-12-19:正式版v2.3</p></div></div><div class="timeline-item-content"><ol><li>新增永久关闭按钮</li><li>本帖停更</li></ol></div></div><div class="timeline-item"><div class="timeline-item-title"><div class="item-circle"><p>2021-01-31:正式版v2.2</p></div></div><div class="timeline-item-content"><ol><li>新增退出按钮。</li><li>无痕模式下退出窗口功能会被拦截，变相致敬原著设定。</li><li>将说明书内容移入默认按钮，可以关闭。</li></ol></div></div><div class="timeline-item"><div class="timeline-item-title"><div class="item-circle"><p>2021-01-30:正式版v2.1</p></div></div><div class="timeline-item-content"><ol><li>修改显隐逻辑，所有次级元素均可以通过点按上级元素来实现常显。</li><li>优化了左侧属性面板的内容排布，使用绝对高度。</li><li>属性面板内容超出自动转为滚动条。</li><li>改动三级菜单的显隐逻辑，也为点按显示</li><li>新增次级菜单的偏移量调整。</li><li>新增了说明书配置项，内附本帖链接。希望可以开启帮我做下宣传。</li><li>调整了3D风格的形变程度。</li><li>更新了字体，忠于原著。</li><li>新增悬停显示配置项，可以自己决定是否使用悬停显示</li></ol></div></div><div class="timeline-item"><div class="timeline-item-title"><div class="item-circle"><p>2021-01-29:正式版v2.0</p></div></div><div class="timeline-item-content"><ol><li>继承1.0版本的绝大多数配置项。</li><li>废弃最大高度，重写样式。全部调整为自动。完全显示菜单。</li><li>重写显隐逻辑，默认只显示1级菜单。</li><li>通过点击1级菜单展开2级菜单。</li><li>通过悬停2级菜单显示3级菜单。</li><li>优化显示逻辑，识别边缘调整菜单出现位置。确保主要内容完整可见。</li><li>优化显示逻辑，新增拖动动作监听。可以通过点按拖动菜单调整菜单位置。</li><li>将1级菜单最后一个按钮默认设置为退出菜单动作。</li><li>优化退出逻辑。点按空白处也可以退出菜单。</li><li>2.0版本正式版发布。实现完整UI风格效果。</li></ol></div></div><div class="timeline-item"><div class="timeline-item-title"><div class="item-circle"><p>2021-01-29:正式版v1.0</p></div></div><div class="timeline-item-content"><ol><li>1.0版本正式版发布。</li><li>确定1.0版本为半边菜单。</li></ol></div></div><div class="timeline-item"><div class="timeline-item-title"><div class="item-circle"><p>2021-01-28:内测版v0.37</p></div></div><div class="timeline-item-content"><ol><li>正式版待发布，因为显隐逻辑完全改变，预备转至新帖；</li></ol></div></div><div class="timeline-item"><div class="timeline-item-title"><div class="item-circle"><p>2021-01-26:内测版v0.21</p></div></div><div class="timeline-item-content"><ol><li>新增了3D模式下浮动效果</li><li>适配了pjax。调用了Butterfly主题自带的pjax对象。其他主题需要另外适配。</li></ol></div></div><div class="timeline-item"><div class="timeline-item-title"><div class="item-circle"><p>2021-01-25:内测版v0.14</p></div></div><div class="timeline-item-content"><ol><li>新增了3D模式开关配置项</li></ol></div></div><div class="timeline-item"><div class="timeline-item-title"><div class="item-circle"><p>2021-01-24:内测版v0.07</p></div></div><div class="timeline-item-content"><ol><li>实现SAO风格的右键菜单</li><li>添加了点击音效，默认使用本站同款，可以自定义配置</li><li>支持添加链接或者自定义脚本动作</li><li>添加<kbd>Ctrl</kbd>+<kbd>右键</kbd>转换原生菜单功能</li><li>几个常用脚本分享</li></ol></div></div></div></div></details><details class="folding-tag" yellow><summary>点击查看参考教程</summary><div class="content"><div class="table-container"><table><thead><tr><th style="text-align:left">参考方向</th><th style="text-align:left">教程原贴</th></tr></thead><tbody><tr><td style="text-align:left">菜单边框风格伪类样式实现方案</td><td style="text-align:left"><a target="_blank" rel="noopener external nofollow noreferrer" href="https://codepen.io/ezenith/pen/qdLjWv">codepen-Pure CSS SAO Menu Thing</a></td></tr><tr><td style="text-align:left">右键菜单显隐逻辑和原生实现方案</td><td style="text-align:left"><a class="ghcard" rel="external nofollow noopener noreferrer noopener" target="_blank" href="https://github.com/volantis-x/community"><img class="no-lightbox" src="" data-lazy-src="https://github-readme-stats.vercel.app/api/pin/?username=volantis-x&repo=community&show_owner=true"></a></td></tr><tr><td style="text-align:left">UI风格参考，图标、音效资源采集</td><td style="text-align:left"><a target="_blank" rel="noopener external nofollow noreferrer" href="http://www.gpbeta.com/post/develop/sao-utils/">SAO Utils</a></td></tr><tr><td style="text-align:left">图标采集</td><td style="text-align:left"><a target="_blank" rel="noopener external nofollow noreferrer" href="https://fontawesome.com/icons?d=gallery">fontawesome</a></td></tr><tr><td style="text-align:left">pjax适配参考</td><td style="text-align:left"><a class="ghcard" rel="external nofollow noopener noreferrer noopener" target="_blank" href="https://github.com/MoOx/pjax"><img class="no-lightbox" src="" data-lazy-src="https://github-readme-stats.vercel.app/api/pin/?username=MoOx&repo=pjax&show_owner=true"></a></td></tr><tr><td style="text-align:left">原生js实现拖拽效果</td><td style="text-align:left"><a target="_blank" rel="noopener external nofollow noreferrer" href="https://www.liuyanla.com/h5/152/">js拖拽：简单五步实现元素拖拽功能</a></td></tr></tbody></table></div></div></details><h2 id="资源下载"><a href="#资源下载" class="headerlink" title="资源下载"></a>资源下载</h2><div class="tip cogs faa-horizontal animated"><p><strong>由于本教程涉及的所有修改对缩进格式等有严格要求，担心自己控制不好的可以直接下载静态资源。参照教程进行修改。</strong></p></div><div class="btns rounded center"><a class="button" target="_blank" rel="noopener external nofollow noreferrer" href="https://wwe.lanzoui.com/i2v56l4rawj" title="下载2.2资源文件"><i class="fas fa-download"></i> 下载2.2资源文件</a></div><div class="note info flat"><div class="hide-block"><button type="button" class="hide-button">预览效果</button><div class="hide-content"><p><img src="" data-lazy-src="https://npm.elemecdn.com/akilar-candyassets/image/SAO-Utils-WEB-2-0-14cc7620.png" alt=""></p></div></div></div><h2 id="写在最前"><a href="#写在最前" class="headerlink" title="写在最前"></a>写在最前</h2><details class="folding-tag" cyan><summary>来自店长的碎碎念</summary><div class="content"><div class="tabs" id="碎碎念"><ul class="nav-tabs"><li class="tab"><button type="button" data-href="#碎碎念-1">2021.01.24</button></li><li class="tab"><button type="button" data-href="#碎碎念-2">2021.01.29</button></li></ul><div class="tab-contents"><div class="tab-item-content" id="碎碎念-1"><p>写一个<code>SAO</code>风格的右键菜单算是我的一个执念了，但是搜遍全网页找不到网页版的内容，于是我想起来多年前就用过的一款软件<a target="_blank" rel="noopener external nofollow noreferrer" href="http://www.gpbeta.com/post/develop/sao-utils/">SAO Utils</a>，可惜它虽然有完整的菜单逻辑，但是却是基于C语言写的。至多只能参考一些音效。</p><p>最后兜兜转转，在魔改博客时看到了<code>Volantis</code>的右键菜单。学习了一下右键菜单的魔改原理。决定自己来从零开始做一个<code>SAO</code>风格的右键菜单。</p><p>因为这个项目，魔怔了大概半个月，<del>好在那半个月单位工作基本划水。（嘛，总之摸鱼也是为了给大家写好看的魔改教程嘛）</del>一直被二级菜单的显隐逻辑所困扰，因为用到了相对定位，中间有一段元素是空白的，没法在不破坏菜单项显示效果的情况下直接依靠hover实现持续显示二级菜单的效果，最后是用定时函数控制绝对显隐，用<code>hover</code>控制持续显隐。总算是有了一个相对舒适的显隐体验。</p><p>在一开始，因为想到以前一直被一些读者喷右键菜单占用了原生菜单很讨厌<del>（说实话这样的读者也很讨厌）</del>。所以这次在<a target="_blank" rel="noopener external nofollow noreferrer" href="https://blog.zykjofficial.top/">@卓越科技</a>建议下添加了<kbd>ctrl</kbd>+<kbd>右键</kbd>打开原生右键菜单的功能。然后考虑到菜单界面对手机不友好，干脆对手机不生效了。</p><p>在添加音效时，因为直接链接跳转的话，会来不及启动点击音效，所以只能使用超时函数设置了<code>0.5</code>秒的延迟，给音效播放留点时间。</p><p>也正是因为不是依赖于<code>a</code>标签的超链接，而是使用<code>window.location.href</code>来实现页面重定向，所以目前对于<code>pjax</code>的适配还是有些许不好。会在切换页面时打断全局音乐。<br>不过塞翁失马焉知非福，也正是因为如此，我又添加了自定义脚本的配置项接口。可以让读者自己开发各种各样的脚本来丰富菜单功能啦。</p><p><del>说到底，既然可以自定义脚本了，那应该也可以适配pjax实现无伤跳转才对。唉，果然还是太菜了</del></p><p>总之，这次的项目就先告一段落啦！</p><p>米娜桑，Link Start！</p><button type="button" class="tab-to-top" aria-label="scroll to top"><i class="fas fa-arrow-up"></i></button></div><div class="tab-item-content" id="碎碎念-2"><p>既然已经制作完成了右半边的<code>SAO</code>风格<code>UI</code>，肯定不可能满足于此的啦。</p><p><del>说起来我当初执意要选择软件工程专业的时候，有个动机就是被刀剑神域里的VRMMO吸引，想着能有一天可以真的体验上这种完全沉浸式的游戏。不过理想和现实还真的是差距鲜明啊。</del></p><p>于是开始尝试制作左半侧的<code>UI</code>。球形风格还是很好实现的。大概只花了半天<del>摸鱼</del>时间，就基本实现了球形样式<code>UI</code>和悬停变色效果，得益于之前做右半边的经验，不管是构建主体还是引入图标都是顺风顺水。</p><p>然后在<del>追番</del>考古时发现左侧菜单还有一个属性面板的界面。OK，话不多说。继续加。<br>总的来说，在熟练掌握相对定位的关系以后，适配起来还是很容易的。因为右键菜单是动态出现的，故而我用的都是绝对长度，自然也不会去考虑和窗口整体大小比例自适应的问题。</p><p>一开始是在静态页面上写的纯静态效果，依靠<code>hover</code>动作控制显隐属性。但是这就导致我遇到了一系列问题。<code>relative</code>定位下，<code>100%</code>这个概念居然是相对于父元素的，依靠各种偏移量搭建的菜单一下子就乱了套。为了调整各个子菜单，重新捡起了初中数学知识，列了一堆二元方程组，最后还真的让我整出了一套计算公式。不过静态的<code>css</code>是不支持这种玩法的啦，好在到时候实装时还有<code>pug</code>和<code>stylus</code>可以添加计算变量动态调整。小<code>case</code>啦。</p><p>然后左半边菜单就搞定啦，悬停显示效果和动画里那是一模一样啊。开心！</p><p>然后，好吧，要把左半边菜单和右半边菜单组装起来。<del>淦</del>,一想到之前为了调整右侧菜单的显隐逻辑付出的血泪我就恨不得吐血三升。网上的参考内容都是针对于子菜单在父级元素内部的情况，那确实可以靠<code>hover</code>轻松搞定，但是我设置了一堆偏移量和伪类，导致子菜单和父菜单关键的连接轴是个伪类，<code>hover</code>无效啊喂！。在体验了两天的天下武功唯快不破以后设置了三种逻辑。</p><p>一种是全部通过点击来展开子菜单。但是这样子一来每次点击都要记得关闭，用清空已激活项来初始化的话，二级和三级又要写另一套逻辑。<code>Pass</code>。</p><p>一种是依靠悬停加延时消失来控制显隐。虽然也算是靠谱了，但是二级消失连带着三级也消失了，还是得天下武功，唯快不破！把延时消失时间设长，观感又很差。<code>Pass</code>。</p><p>最后一种是被读者点醒的，所以说当局者迷旁观者清啊，既然前两种方案都是半吊子，那把它们组合起来。一级菜单用点击来控制二级菜单显隐，二级菜单用悬停延时来控制三级菜单显隐，那不就没问题了嘛！说起来<a target="_blank" rel="noopener external nofollow noreferrer" href="http://www.gpbeta.com/post/develop/sao-utils/">SAO Utils</a>就是这个显隐逻辑。啊，顿悟的感觉真爽，我感觉我现在起码能烧出十颗舍利子。</p><p>显隐逻辑处理好以后，再做边缘判断。为了确保完整可见，要充分考虑每次点击的情况，感觉又回到了初中数学课堂，分类讨论，列算式，化简，emmm，我应该还算对得起我初中的数学老师吧。这时候又想起洪哥之前吐槽的，点击位置和菜单出现位置偏移有点大了。</p><p>没办法，那就再加个可以拖动的吧。诶？那我还做边缘判断干啥？</p><p>总之，磕磕绊绊的，总算是可以把完整的<code>SAO UI</code>复现到网页中了。</p><p>嗯，再来一次。<code>Link Start</code> ！</p><button type="button" class="tab-to-top" aria-label="scroll to top"><i class="fas fa-arrow-up"></i></button></div></div></div></div></details><h2 id="教程正文"><a href="#教程正文" class="headerlink" title="教程正文"></a>教程正文</h2><div class="tip warning faa-horizontal animated-hover"><p>SAO UI PLAN 相关项目为本站原创项目，因此均为内测版，在样式适配上仅针对本站进行调整，因此在泛用性上存在缺漏。对于可能遇到的bug，欢迎在评论区进行讨论。</p><p>在进行本帖的魔改前，请务必做好备份以便回退。</p></div><details class="folding-tag" red open><summary>点击查看教程正文</summary><div class="content"><ol><li>新建<code>[Blogroot]\themes\butterfly\layout\includes\SAO-menu.pug</code>：<figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">#SAO-back</span></span><br><span class="line">  <span class="comment">#SAO-menu</span></span><br><span class="line">    <span class="comment">#SAO-menu-content</span></span><br><span class="line">      .utils-<span class="built_in">list</span></span><br><span class="line">        <span class="keyword">if</span> theme.SAO_Utils.util_list</span><br><span class="line">          each util <span class="keyword">in</span> theme.SAO_Utils.util_list</span><br><span class="line">            .utils-<span class="built_in">list</span>-item</span><br><span class="line">              <span class="keyword">if</span> util.panel</span><br><span class="line">                .user-panel(style=`top:`+ util.panel.top + `;`)</span><br><span class="line">                  .user-panel-name!= util.panel.title</span><br><span class="line">                  .user-panel-img</span><br><span class="line">                    - var userImg = util.panel.img ? url_for(util.panel.img) : <span class="string">&#x27;https://npm.elemecdn.com/akilar-candyassets/image/info.png&#x27;</span></span><br><span class="line">                    img(src=userImg)</span><br><span class="line">                  .user-panel-properties!=`$&#123;util.panel.prop&#125;`</span><br><span class="line">              <span class="keyword">if</span> util.link</span><br><span class="line">                i(<span class="keyword">class</span>=util.icon onclick=`clickAudio();setTimeout(function()&#123;SAOclose();linkStart(<span class="string">&#x27;` +url_for(util.link)+ `&#x27;</span>)&#125;,<span class="number">500</span>);`)</span><br><span class="line">              <span class="keyword">else</span> <span class="keyword">if</span> util.action</span><br><span class="line">                i(<span class="keyword">class</span>=util.icon onclick=`clickAudio();setTimeout(function()&#123;SAOclose();` + util.action + `&#125;,<span class="number">500</span>);`)</span><br><span class="line">              <span class="keyword">else</span></span><br><span class="line">                i(<span class="keyword">class</span>=util.icon onclick=<span class="string">&quot;panelAudio();UtilsClick()&quot;</span>)</span><br><span class="line">                <span class="keyword">if</span> util.menu_list</span><br><span class="line">                  - var menuTop = util.menutop ? util.menutop : -((util.menu_list.length)*<span class="number">40</span>/<span class="number">2</span>+<span class="number">43</span>)</span><br><span class="line">                  .menu-<span class="built_in">list</span>(style=`top:` + menuTop + `px;`)</span><br><span class="line">                    each item <span class="keyword">in</span> util.menu_list</span><br><span class="line">                      .menu-<span class="built_in">list</span>-item</span><br><span class="line">                        <span class="keyword">if</span> item.link</span><br><span class="line">                          i(<span class="keyword">class</span>=item.icon onclick=`clickAudio();setTimeout(function()&#123;SAOclose();linkStart(<span class="string">&#x27;` +url_for(item.link)+ `&#x27;</span>)&#125;,<span class="number">500</span>);`)= item.name</span><br><span class="line">                        <span class="keyword">else</span> <span class="keyword">if</span> item.action</span><br><span class="line">                          i(<span class="keyword">class</span>=item.icon onclick=`clickAudio();setTimeout(function()&#123;SAOclose();` + item.action + `&#125;,<span class="number">500</span>);`)= item.name</span><br><span class="line">                        <span class="keyword">else</span></span><br><span class="line">                          i(<span class="keyword">class</span>=item.icon onclick=<span class="string">&#x27;panelAudio();MenusClick()&#x27;</span>)= item.name</span><br><span class="line">                        <span class="keyword">if</span> item.child_list</span><br><span class="line">                          - var childTop = item.childtop ? item.childtop : -((item.child_list.length)*<span class="number">40</span>/<span class="number">2</span>+<span class="number">20</span>)</span><br><span class="line">                          .menu-child(style=`top:` + childTop + `px;`)</span><br><span class="line">                            each child <span class="keyword">in</span> item.child_list</span><br><span class="line">                              .menu-<span class="built_in">list</span>-child</span><br><span class="line">                                <span class="keyword">if</span> child.link</span><br><span class="line">                                  i(<span class="keyword">class</span>=child.icon onclick=`clickAudio();setTimeout(function()&#123;SAOclose();linkStart(<span class="string">&#x27;` +url_for(child.link)+ `&#x27;</span>)&#125;,<span class="number">500</span>);`)= child.name</span><br><span class="line">                                <span class="keyword">else</span> <span class="keyword">if</span> child.action</span><br><span class="line">                                  i(<span class="keyword">class</span>=child.icon onclick=`clickAudio();setTimeout(function()&#123;SAOclose();` + child.action + `&#125;,<span class="number">500</span>);`)= child.name</span><br><span class="line">                                <span class="keyword">else</span></span><br><span class="line">                                  i(<span class="keyword">class</span>=child.icon)= child.name</span><br><span class="line">        <span class="keyword">if</span> theme.SAO_Utils.Instructions ? theme.SAO_Utils.Instructions : true</span><br><span class="line">          .utils-<span class="built_in">list</span>-item</span><br><span class="line">            .user-panel</span><br><span class="line">              .user-panel-name Instructions</span><br><span class="line">              .user-panel-img</span><br><span class="line">                img(src=<span class="string">&#x27;/img/siteicon/favicon.png&#x27;</span>)</span><br><span class="line">              .user-panel-properties</span><br><span class="line">                h4 欢迎使用SAO_Utils_Web <span class="number">2.0</span></span><br><span class="line">                p 点按选项可以持续显示下级菜单。您可以通过按住&lt;kbd&gt;ctrl&lt;/kbd&gt;+&lt;kbd&gt;右键&lt;/kbd&gt;来恢复使用原生右键菜单，更多内容可点击右侧Option按钮访问教程或Help按钮加入糖果屋QQ群。</span><br><span class="line">                center ©Akilarの糖果屋</span><br><span class="line">            i.fa.fa-cog(onclick=<span class="string">&quot;panelAudio();UtilsClick()&quot;</span>)</span><br><span class="line">            .menu-<span class="built_in">list</span>(style=<span class="string">&quot;top:-103px;&quot;</span>)</span><br><span class="line">              .menu-<span class="built_in">list</span>-item</span><br><span class="line">                i.fa.fa-tools(onclick=<span class="string">&quot;clickAudio();setTimeout(function()&#123;SAOclose();linkStart(&#x27;https://akilar.top/posts/fd243d7/&#x27;)&#125;,500);&quot;</span>) Option</span><br><span class="line">              .menu-<span class="built_in">list</span>-item</span><br><span class="line">                i.fa.fa-question-circle(onclick=<span class="string">&quot;clickAudio();setTimeout(function()&#123;SAOclose();linkStart(&#x27;https://jq.qq.com/?_wv=1027&amp;k=a08BZRzs&#x27;)&#125;,500);&quot;</span>) Help</span><br><span class="line">              .menu-<span class="built_in">list</span>-item</span><br><span class="line">                i.fa.fa-sign-out-alt(onclick=<span class="string">&quot;alertAudio();openLogout()&quot;</span>) Logout</span><br><span class="line">        .utils-<span class="built_in">list</span>-item</span><br><span class="line">          i.fa.fa-power-off(onclick=<span class="string">&#x27;alertAudio();SAOKeepOff()&#x27;</span> title=<span class="string">&quot;永久关闭SAO右键菜单&quot;</span>)</span><br><span class="line"><span class="keyword">if</span> theme.SAO_Utils.Instructions ? theme.SAO_Utils.Instructions : true</span><br><span class="line">  <span class="comment">#SAO-logout</span></span><br><span class="line">    .logout-title Alert</span><br><span class="line">    .logout-alert 是否确认退出?</span><br><span class="line">    .logout-button</span><br><span class="line">      span.logout-confirm</span><br><span class="line">        button.far.fa-circle(<span class="built_in">type</span>=<span class="string">&quot;button&quot;</span> name=<span class="string">&quot;confirm&quot;</span> onclick=<span class="string">&quot;clickAudio();confirmLogout()&quot;</span>)</span><br><span class="line">      span.logout-cancel</span><br><span class="line">        button.fa.fa-times(<span class="built_in">type</span>=<span class="string">&quot;button&quot;</span> name=<span class="string">&quot;cancel&quot;</span> onclick=<span class="string">&quot;panelAudio();cancelLogout()&quot;</span>)</span><br><span class="line"><span class="keyword">if</span> theme.SAO_Utils.music.enable</span><br><span class="line">  - var Launcher = theme.SAO_Utils.music.Launcher ? url_for(theme.SAO_Utils.music.Launcher) : <span class="string">&#x27;https://npm.elemecdn.com/akilar-candyassets/audio/Launcher.wav&#x27;</span></span><br><span class="line">  - var Click = theme.SAO_Utils.music.Click ? url_for(theme.SAO_Utils.music.Click) : <span class="string">&#x27;https://npm.elemecdn.com/akilar-candyassets/audio/Click.wav&#x27;</span></span><br><span class="line">  - var Panel = theme.SAO_Utils.music.Panel ? url_for(theme.SAO_Utils.music.Panel) : <span class="string">&#x27;https://npm.elemecdn.com/akilar-candyassets/audio/Panel.wav&#x27;</span></span><br><span class="line">  - var Alert = theme.SAO_Utils.music.Alert ? url_for(theme.SAO_Utils.music.Alert) : <span class="string">&#x27;https://npm.elemecdn.com/akilar-candyassets/audio/Alert.wav&#x27;</span></span><br><span class="line">  audio<span class="comment">#SAOlauncher(src=Launcher)</span></span><br><span class="line">  audio<span class="comment">#SAOClick(src=Click)</span></span><br><span class="line">  audio<span class="comment">#SAOPanel(src=Panel)</span></span><br><span class="line">  audio<span class="comment">#SAOAlert(src=Alert)</span></span><br><span class="line">script(<span class="keyword">async</span> src=url_for(theme.CDN.SAO_Utils))</span><br></pre></td></tr></table></figure></li><li>新建<code>[Blogroot]\themes\butterfly\source\css\_layout\SAO_Menu.styl</code>:<figure class="highlight stylus"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br><span class="line">165</span><br><span class="line">166</span><br><span class="line">167</span><br><span class="line">168</span><br><span class="line">169</span><br><span class="line">170</span><br><span class="line">171</span><br><span class="line">172</span><br><span class="line">173</span><br><span class="line">174</span><br><span class="line">175</span><br><span class="line">176</span><br><span class="line">177</span><br><span class="line">178</span><br><span class="line">179</span><br><span class="line">180</span><br><span class="line">181</span><br><span class="line">182</span><br><span class="line">183</span><br><span class="line">184</span><br><span class="line">185</span><br><span class="line">186</span><br><span class="line">187</span><br><span class="line">188</span><br><span class="line">189</span><br><span class="line">190</span><br><span class="line">191</span><br><span class="line">192</span><br><span class="line">193</span><br><span class="line">194</span><br><span class="line">195</span><br><span class="line">196</span><br><span class="line">197</span><br><span class="line">198</span><br><span class="line">199</span><br><span class="line">200</span><br><span class="line">201</span><br><span class="line">202</span><br><span class="line">203</span><br><span class="line">204</span><br><span class="line">205</span><br><span class="line">206</span><br><span class="line">207</span><br><span class="line">208</span><br><span class="line">209</span><br><span class="line">210</span><br><span class="line">211</span><br><span class="line">212</span><br><span class="line">213</span><br><span class="line">214</span><br><span class="line">215</span><br><span class="line">216</span><br><span class="line">217</span><br><span class="line">218</span><br><span class="line">219</span><br><span class="line">220</span><br><span class="line">221</span><br><span class="line">222</span><br><span class="line">223</span><br><span class="line">224</span><br><span class="line">225</span><br><span class="line">226</span><br><span class="line">227</span><br><span class="line">228</span><br><span class="line">229</span><br><span class="line">230</span><br><span class="line">231</span><br><span class="line">232</span><br><span class="line">233</span><br><span class="line">234</span><br><span class="line">235</span><br><span class="line">236</span><br><span class="line">237</span><br><span class="line">238</span><br><span class="line">239</span><br><span class="line">240</span><br><span class="line">241</span><br><span class="line">242</span><br><span class="line">243</span><br><span class="line">244</span><br><span class="line">245</span><br><span class="line">246</span><br><span class="line">247</span><br><span class="line">248</span><br><span class="line">249</span><br><span class="line">250</span><br><span class="line">251</span><br><span class="line">252</span><br><span class="line">253</span><br><span class="line">254</span><br><span class="line">255</span><br><span class="line">256</span><br><span class="line">257</span><br><span class="line">258</span><br><span class="line">259</span><br><span class="line">260</span><br><span class="line">261</span><br><span class="line">262</span><br><span class="line">263</span><br><span class="line">264</span><br><span class="line">265</span><br><span class="line">266</span><br><span class="line">267</span><br><span class="line">268</span><br><span class="line">269</span><br><span class="line">270</span><br><span class="line">271</span><br><span class="line">272</span><br><span class="line">273</span><br><span class="line">274</span><br><span class="line">275</span><br><span class="line">276</span><br><span class="line">277</span><br><span class="line">278</span><br><span class="line">279</span><br><span class="line">280</span><br><span class="line">281</span><br><span class="line">282</span><br><span class="line">283</span><br><span class="line">284</span><br><span class="line">285</span><br><span class="line">286</span><br><span class="line">287</span><br><span class="line">288</span><br><span class="line">289</span><br><span class="line">290</span><br><span class="line">291</span><br><span class="line">292</span><br><span class="line">293</span><br><span class="line">294</span><br><span class="line">295</span><br><span class="line">296</span><br><span class="line">297</span><br><span class="line">298</span><br><span class="line">299</span><br><span class="line">300</span><br><span class="line">301</span><br><span class="line">302</span><br><span class="line">303</span><br><span class="line">304</span><br><span class="line">305</span><br><span class="line">306</span><br><span class="line">307</span><br><span class="line">308</span><br><span class="line">309</span><br><span class="line">310</span><br><span class="line">311</span><br><span class="line">312</span><br><span class="line">313</span><br><span class="line">314</span><br><span class="line">315</span><br><span class="line">316</span><br><span class="line">317</span><br><span class="line">318</span><br><span class="line">319</span><br><span class="line">320</span><br><span class="line">321</span><br><span class="line">322</span><br><span class="line">323</span><br><span class="line">324</span><br><span class="line">325</span><br><span class="line">326</span><br><span class="line">327</span><br><span class="line">328</span><br><span class="line">329</span><br><span class="line">330</span><br><span class="line">331</span><br><span class="line">332</span><br><span class="line">333</span><br><span class="line">334</span><br><span class="line">335</span><br><span class="line">336</span><br><span class="line">337</span><br><span class="line">338</span><br><span class="line">339</span><br><span class="line">340</span><br><span class="line">341</span><br><span class="line">342</span><br><span class="line">343</span><br><span class="line">344</span><br><span class="line">345</span><br><span class="line">346</span><br><span class="line">347</span><br><span class="line">348</span><br><span class="line">349</span><br><span class="line">350</span><br><span class="line">351</span><br><span class="line">352</span><br><span class="line">353</span><br><span class="line">354</span><br><span class="line">355</span><br><span class="line">356</span><br><span class="line">357</span><br><span class="line">358</span><br><span class="line">359</span><br><span class="line">360</span><br><span class="line">361</span><br><span class="line">362</span><br><span class="line">363</span><br><span class="line">364</span><br><span class="line">365</span><br><span class="line">366</span><br><span class="line">367</span><br><span class="line">368</span><br><span class="line">369</span><br><span class="line">370</span><br><span class="line">371</span><br><span class="line">372</span><br><span class="line">373</span><br><span class="line">374</span><br><span class="line">375</span><br><span class="line">376</span><br><span class="line">377</span><br><span class="line">378</span><br><span class="line">379</span><br><span class="line">380</span><br><span class="line">381</span><br><span class="line">382</span><br><span class="line">383</span><br><span class="line">384</span><br><span class="line">385</span><br><span class="line">386</span><br><span class="line">387</span><br><span class="line">388</span><br><span class="line">389</span><br><span class="line">390</span><br><span class="line">391</span><br><span class="line">392</span><br><span class="line">393</span><br><span class="line">394</span><br><span class="line">395</span><br><span class="line">396</span><br><span class="line">397</span><br><span class="line">398</span><br><span class="line">399</span><br><span class="line">400</span><br><span class="line">401</span><br><span class="line">402</span><br><span class="line">403</span><br><span class="line">404</span><br><span class="line">405</span><br><span class="line">406</span><br><span class="line">407</span><br><span class="line">408</span><br><span class="line">409</span><br><span class="line">410</span><br><span class="line">411</span><br><span class="line">412</span><br><span class="line">413</span><br><span class="line">414</span><br><span class="line">415</span><br><span class="line">416</span><br><span class="line">417</span><br><span class="line">418</span><br><span class="line">419</span><br><span class="line">420</span><br><span class="line">421</span><br><span class="line">422</span><br><span class="line">423</span><br><span class="line">424</span><br><span class="line">425</span><br><span class="line">426</span><br><span class="line">427</span><br><span class="line">428</span><br><span class="line">429</span><br><span class="line">430</span><br><span class="line">431</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">if</span> <span class="built_in">hexo-config</span>(<span class="string">&#x27;SAO_Utils.enable&#x27;</span>)</span><br><span class="line">  <span class="keyword">@font-face</span></span><br><span class="line">    <span class="attribute">font-family</span> <span class="string">&#x27;SAOUI&#x27;</span></span><br><span class="line">    <span class="attribute">src</span> <span class="built_in">url</span>(<span class="string">&#x27;https://npm.elemecdn.com/akilar-candyassets/fonts/SAOUI.ttf&#x27;</span>)</span><br><span class="line">    <span class="attribute">font-display</span> swap</span><br><span class="line">  <span class="selector-id">#SAO-back</span></span><br><span class="line">    <span class="attribute">display</span> none</span><br><span class="line">    <span class="attribute">position</span> fixed</span><br><span class="line">    <span class="attribute">width</span> <span class="number">100%</span></span><br><span class="line">    <span class="attribute">top</span> <span class="number">0</span></span><br><span class="line">    <span class="attribute">left</span> <span class="number">0</span></span><br><span class="line">    <span class="attribute">height</span> <span class="number">100%</span></span><br><span class="line">    <span class="attribute">background</span> <span class="built_in">rgba</span>(<span class="number">3</span>, <span class="number">3</span>, <span class="number">3</span>, <span class="number">0.5</span>)</span><br><span class="line">    <span class="attribute">z-index</span> <span class="number">9999</span></span><br><span class="line">    <span class="attribute">vertical-align</span> super</span><br><span class="line"></span><br><span class="line">  <span class="selector-id">#SAO-menu</span></span><br><span class="line">    <span class="attribute">display</span> block</span><br><span class="line">    <span class="attribute">position</span> absolute</span><br><span class="line"></span><br><span class="line">  <span class="selector-id">#SAO-menu-content</span></span><br><span class="line">    <span class="attribute">font-family</span> <span class="string">&#x27;SAOUI&#x27;</span> ,Langar,-apple-system, sans-serif</span><br><span class="line">    <span class="attribute">display</span> block</span><br><span class="line"></span><br><span class="line">  <span class="selector-class">.utils-list-item</span></span><br><span class="line">    <span class="attribute">font-weight</span> bolder</span><br><span class="line">    <span class="attribute">margin-top</span> <span class="number">10px</span></span><br><span class="line">    <span class="attribute">width</span> <span class="number">66px</span></span><br><span class="line">    <span class="attribute">height</span> <span class="number">66px</span></span><br><span class="line">    <span class="attribute">background</span> <span class="built_in">rgba</span>(<span class="number">255</span>,<span class="number">255</span>,<span class="number">255</span>,<span class="number">0</span>)</span><br><span class="line">    <span class="attribute">text-align</span> center</span><br><span class="line">    <span class="attribute">vertical-align</span> super</span><br><span class="line">    <span class="attribute">position</span> relative</span><br><span class="line">    <span class="attribute">display</span> block</span><br><span class="line">    <span class="attribute">border-radius</span> <span class="number">50%</span></span><br><span class="line">    <span class="attribute">color</span> <span class="built_in">rgba</span>(<span class="number">255</span>,<span class="number">255</span>,<span class="number">255</span>,<span class="number">0.5</span>)</span><br><span class="line">    <span class="attribute">border</span> <span class="number">3px</span> solid</span><br><span class="line">    <span class="attribute">box-shadow</span> <span class="number">2px</span> <span class="number">2px</span> <span class="number">2px</span> <span class="number">#888888</span></span><br><span class="line">    <span class="selector-tag">i</span></span><br><span class="line">      <span class="attribute">width</span> <span class="number">52px</span></span><br><span class="line">      <span class="attribute">height</span> <span class="number">52px</span></span><br><span class="line">      <span class="attribute">background</span> <span class="built_in">rgba</span>(<span class="number">255</span>,<span class="number">255</span>,<span class="number">255</span>,<span class="number">0.5</span>)</span><br><span class="line">      <span class="attribute">display</span> block</span><br><span class="line">      <span class="attribute">margin</span> auto</span><br><span class="line">      <span class="attribute">vertical-align</span> middle</span><br><span class="line">      <span class="attribute">top</span> <span class="number">4px</span></span><br><span class="line">      <span class="attribute">position</span> relative</span><br><span class="line">      <span class="attribute">line-height</span> <span class="number">100%</span></span><br><span class="line">      <span class="attribute">border-radius</span> <span class="number">50%</span></span><br><span class="line">      <span class="selector-pseudo">&amp;::before</span></span><br><span class="line">        <span class="attribute">color</span> <span class="built_in">rgba</span>(<span class="number">60</span>, <span class="number">60</span>, <span class="number">61</span>,<span class="number">0.7</span>)</span><br><span class="line">        <span class="attribute">font-size</span> <span class="number">30px</span></span><br><span class="line">        <span class="attribute">text-align</span> center</span><br><span class="line">        <span class="attribute">font-weight</span> bolder</span><br><span class="line">        <span class="attribute">top</span> <span class="number">20px</span></span><br><span class="line">        <span class="attribute">position</span> relative</span><br><span class="line">    <span class="selector-pseudo">&amp;:hover</span></span><br><span class="line">      <span class="attribute">color</span> <span class="number">#eda60c</span></span><br><span class="line">      <span class="selector-tag">i</span></span><br><span class="line">        <span class="attribute">background</span> <span class="number">#eda60c</span></span><br><span class="line">        <span class="selector-pseudo">&amp;::before</span></span><br><span class="line">          <span class="attribute">color</span> white</span><br><span class="line">    <span class="selector-class">.user-panel</span></span><br><span class="line">      <span class="attribute">transform</span> <span class="built_in">rotate3d</span>(-<span class="number">1</span>,<span class="number">1</span>,<span class="number">0</span>,<span class="number">20deg</span>)</span><br><span class="line">      <span class="attribute">display</span> none</span><br><span class="line">      <span class="attribute">position</span> absolute</span><br><span class="line">      <span class="attribute">width</span> <span class="number">250px</span></span><br><span class="line">      <span class="attribute">height</span> auto</span><br><span class="line">      <span class="attribute">background</span> <span class="built_in">rgba</span>(<span class="number">231</span>, <span class="number">231</span>, <span class="number">232</span>,<span class="number">0.9</span>)</span><br><span class="line">      <span class="attribute">border-radius</span> <span class="number">10px</span></span><br><span class="line">      <span class="attribute">left</span> -<span class="number">290px</span></span><br><span class="line">      <span class="attribute">top</span> -<span class="number">170px</span></span><br><span class="line">      <span class="attribute">box-shadow</span> <span class="number">3px</span> <span class="number">3px</span> <span class="number">2px</span> <span class="number">#888888</span></span><br><span class="line">      <span class="selector-pseudo">&amp;:before</span></span><br><span class="line">        <span class="attribute">position</span> absolute</span><br><span class="line">        <span class="attribute">content</span> <span class="string">&#x27;&#x27;</span></span><br><span class="line">        <span class="attribute">border-left</span> <span class="number">25px</span> solid <span class="number">#f9f9f9</span></span><br><span class="line">        <span class="attribute">border-top</span> <span class="number">10px</span> solid transparent</span><br><span class="line">        <span class="attribute">border-bottom</span> <span class="number">10px</span> solid transparent</span><br><span class="line">        <span class="attribute">left</span> <span class="number">250px</span></span><br><span class="line">        <span class="attribute">top</span> <span class="built_in">calc</span>(<span class="number">50%</span> - <span class="number">10px</span>)</span><br><span class="line"></span><br><span class="line">  <span class="selector-class">.user-panel</span></span><br><span class="line">    <span class="selector-class">.user-panel-name</span></span><br><span class="line">      <span class="attribute">font-size</span> <span class="number">20px</span></span><br><span class="line">      <span class="attribute">color</span> <span class="built_in">rgba</span>(<span class="number">60</span>, <span class="number">60</span>, <span class="number">61</span>,<span class="number">0.7</span>)<span class="meta">!important</span></span><br><span class="line">      <span class="attribute">display</span> block</span><br><span class="line">      <span class="attribute">width</span> <span class="number">100%</span></span><br><span class="line">      <span class="attribute">height</span> <span class="number">30px</span></span><br><span class="line">      <span class="attribute">position</span> relative</span><br><span class="line">      <span class="attribute">background</span> <span class="number">#f9f9f9</span></span><br><span class="line">      <span class="attribute">border-top-left-radius</span> <span class="number">10px</span></span><br><span class="line">      <span class="attribute">border-top-right-radius</span> <span class="number">10px</span></span><br><span class="line">    <span class="selector-class">.user-panel-img</span></span><br><span class="line">      <span class="attribute">padding-inline</span> <span class="number">30px</span></span><br><span class="line">      <span class="attribute">padding-bottom</span> <span class="number">0px</span></span><br><span class="line">      <span class="attribute">padding-top</span> <span class="number">20px</span></span><br><span class="line">      <span class="attribute">width</span> <span class="number">100%</span></span><br><span class="line">      <span class="attribute">height</span> <span class="number">50%</span></span><br><span class="line">      <span class="attribute">overflow</span> hidden</span><br><span class="line">      <span class="attribute">background</span> <span class="number">#f9f9f9</span></span><br><span class="line">      <span class="attribute">text-align</span> center</span><br><span class="line">      <span class="attribute">box-shadow</span> -<span class="number">1px</span> <span class="number">10px</span> <span class="number">15px</span> <span class="number">#888888</span></span><br><span class="line">      <span class="selector-tag">img</span></span><br><span class="line">        <span class="attribute">width</span> <span class="number">100%</span></span><br><span class="line">      <span class="selector-pseudo">&amp;::after</span></span><br><span class="line">        <span class="attribute">position</span> absolute</span><br><span class="line">        <span class="attribute">content</span> <span class="string">&#x27;&#x27;</span></span><br><span class="line">        <span class="attribute">border-top</span> <span class="number">15px</span> solid <span class="number">#f9f9f9</span></span><br><span class="line">        <span class="attribute">border-right</span> <span class="number">10px</span> solid transparent</span><br><span class="line">        <span class="attribute">border-left</span> <span class="number">10px</span> solid transparent</span><br><span class="line">        <span class="attribute">left</span> <span class="number">30%</span></span><br><span class="line">        <span class="attribute">top</span> <span class="built_in">calc</span>(<span class="number">50%</span> + <span class="number">45px</span>)</span><br><span class="line">    <span class="selector-class">.user-panel-properties</span></span><br><span class="line">      <span class="attribute">font-size</span> <span class="number">18px</span></span><br><span class="line">      <span class="attribute">padding</span> <span class="number">20px</span></span><br><span class="line">      <span class="attribute">margin</span> <span class="number">0</span> auto</span><br><span class="line">      <span class="attribute">height</span> <span class="number">150px</span></span><br><span class="line">      <span class="attribute">width</span> <span class="number">100%</span></span><br><span class="line">      <span class="attribute">overflow</span> scroll</span><br><span class="line">      <span class="attribute">display</span> inline-block</span><br><span class="line">      <span class="attribute">color</span> <span class="built_in">rgba</span>(<span class="number">60</span>, <span class="number">60</span>, <span class="number">61</span>,<span class="number">0.7</span>)<span class="meta">!important</span></span><br><span class="line">      <span class="attribute">text-align</span> left</span><br><span class="line">      &amp;::-webkit-scrollbar</span><br><span class="line">        <span class="attribute">display</span> none</span><br><span class="line">  <span class="selector-class">.user-panel-name</span></span><br><span class="line">    <span class="selector-pseudo">&amp;::after</span></span><br><span class="line">      <span class="attribute">display</span> block</span><br><span class="line">      <span class="attribute">width</span> <span class="number">80%</span></span><br><span class="line">      <span class="attribute">margin-left</span> <span class="number">10%</span></span><br><span class="line">      <span class="attribute">height</span> <span class="number">2px</span></span><br><span class="line">      <span class="attribute">content</span> <span class="string">&#x27;&#x27;</span></span><br><span class="line">      <span class="attribute">background</span> <span class="built_in">rgba</span>(<span class="number">160</span>, <span class="number">159</span>, <span class="number">160</span>,<span class="number">0.9</span>)</span><br><span class="line">      <span class="attribute">border-radius</span> <span class="number">5px</span></span><br><span class="line"></span><br><span class="line">  <span class="selector-class">.menu-list</span></span><br><span class="line">    <span class="attribute">display</span> none</span><br><span class="line">    <span class="attribute">position</span> relative</span><br><span class="line">    <span class="attribute">border</span> <span class="number">1px</span> solid</span><br><span class="line">    <span class="attribute">left</span> <span class="number">90px</span></span><br><span class="line">    <span class="attribute">border-image</span> <span class="built_in">linear-gradient</span>(to top, transparent, <span class="number">#f9f9f9</span> <span class="number">20%</span>, <span class="number">#f9f9f9</span> <span class="number">80%</span>, transparent) <span class="number">0</span> <span class="number">0</span> <span class="number">0</span> <span class="number">1</span></span><br><span class="line">    <span class="attribute">margin-left</span> <span class="number">10px</span></span><br><span class="line">    <span class="attribute">width</span> auto</span><br><span class="line">    <span class="attribute">height</span> auto</span><br><span class="line">    <span class="attribute">padding</span> <span class="number">10px</span> <span class="number">30px</span></span><br><span class="line">    <span class="selector-pseudo">&amp;:before</span></span><br><span class="line">      <span class="attribute">position</span> absolute</span><br><span class="line">      <span class="attribute">content</span> <span class="string">&#x27;&#x27;</span></span><br><span class="line">      <span class="attribute">border-right</span> <span class="number">25px</span> solid <span class="number">#f9f9f9</span></span><br><span class="line">      <span class="attribute">border-top</span> <span class="number">10px</span> solid transparent</span><br><span class="line">      <span class="attribute">border-bottom</span> <span class="number">10px</span> solid transparent</span><br><span class="line">      <span class="attribute">left</span> -<span class="number">30px</span></span><br><span class="line">      <span class="attribute">top</span> <span class="built_in">calc</span>(<span class="number">50%</span> - <span class="number">10px</span>)</span><br><span class="line">    <span class="selector-pseudo">&amp;:after</span></span><br><span class="line">      <span class="attribute">position</span> absolute</span><br><span class="line">      <span class="attribute">content</span> <span class="string">&#x27;&#x27;</span></span><br><span class="line">      <span class="attribute">border</span> <span class="number">3px</span> solid <span class="number">#333</span></span><br><span class="line">      <span class="attribute">border-radius</span> <span class="number">50%</span></span><br><span class="line">      <span class="attribute">left</span> -<span class="number">20px</span></span><br><span class="line">      <span class="attribute">top</span> <span class="number">50%</span></span><br><span class="line">      <span class="attribute">transform</span> <span class="built_in">translateY</span>(-<span class="number">50%</span>)</span><br><span class="line"></span><br><span class="line">  <span class="selector-class">.menu-list-item</span></span><br><span class="line">    <span class="attribute">display</span> block</span><br><span class="line">    <span class="attribute">border-radius</span> <span class="number">3px</span></span><br><span class="line">    <span class="attribute">background</span> <span class="built_in">rgba</span>(<span class="number">249</span>, <span class="number">249</span>, <span class="number">249</span>, <span class="number">0.79</span>)</span><br><span class="line">    <span class="attribute">color</span> <span class="number">#494748</span></span><br><span class="line">    <span class="attribute">width</span> <span class="number">180px</span></span><br><span class="line">    <span class="attribute">padding</span> <span class="number">20px</span> <span class="number">25px</span></span><br><span class="line">    <span class="attribute">margin-bottom</span> <span class="number">5px</span></span><br><span class="line">    <span class="attribute">position</span> relative</span><br><span class="line">    <span class="attribute">left</span> -<span class="number">25px</span></span><br><span class="line">    <span class="attribute">font-weight</span> bolder</span><br><span class="line">    <span class="attribute">color</span> <span class="built_in">rgb</span>(<span class="number">77</span>, <span class="number">72</span>, <span class="number">73</span>)</span><br><span class="line">    <span class="attribute">box-shadow</span> <span class="number">3px</span> <span class="number">3px</span> <span class="number">2px</span> <span class="number">#888888</span></span><br><span class="line">    <span class="attribute">height</span> <span class="number">40px</span></span><br><span class="line">    <span class="attribute">text-align</span> left</span><br><span class="line">    <span class="selector-pseudo">&amp;:last-child</span></span><br><span class="line">      <span class="attribute">margin-bottom</span> <span class="number">0</span></span><br><span class="line">    <span class="selector-pseudo">&amp;:hover</span></span><br><span class="line">      <span class="attribute">cursor</span> pointer</span><br><span class="line">      <span class="attribute">background-color</span> <span class="number">#eda60c</span></span><br><span class="line">      <span class="attribute">color</span> <span class="number">#f9f9f9</span></span><br><span class="line">      <span class="selector-class">.menu-child</span></span><br><span class="line">        <span class="attribute">display</span> block</span><br><span class="line">        <span class="attribute">z-index</span> <span class="number">10000</span></span><br><span class="line">      <span class="selector-tag">i</span></span><br><span class="line">        <span class="selector-pseudo">&amp;::before</span></span><br><span class="line">          <span class="attribute">cursor</span> pointer</span><br><span class="line">          <span class="attribute">background-color</span> <span class="number">#f9f9f9</span></span><br><span class="line">          <span class="attribute">color</span> <span class="number">#eda60c</span></span><br><span class="line">    <span class="selector-tag">i</span></span><br><span class="line">      <span class="attribute">display</span> block</span><br><span class="line">      <span class="attribute">vertical-align</span> super</span><br><span class="line">      <span class="attribute">font-family</span> <span class="string">&#x27;SAOUI&#x27;</span> ,Langar,-apple-system, sans-serif</span><br><span class="line">      <span class="attribute">font-size</span> <span class="number">20px</span></span><br><span class="line">      <span class="attribute">position</span> absolute</span><br><span class="line">      <span class="attribute">border-radius</span> <span class="number">0</span></span><br><span class="line">      <span class="attribute">background</span> <span class="built_in">rgba</span>(<span class="number">77</span>, <span class="number">72</span>, <span class="number">73</span>,<span class="number">0</span>)<span class="meta">!important</span></span><br><span class="line">      <span class="attribute">left</span> -<span class="number">10px</span></span><br><span class="line">      <span class="attribute">width</span> <span class="number">100%</span></span><br><span class="line">      <span class="attribute">margin-left</span> <span class="number">15px</span></span><br><span class="line">      <span class="attribute">top</span> -<span class="number">2px</span></span><br><span class="line">      <span class="attribute">left</span> -<span class="number">15px</span></span><br><span class="line">      <span class="attribute">padding-top</span> <span class="number">10px</span></span><br><span class="line">      <span class="selector-pseudo">&amp;::before</span></span><br><span class="line">        <span class="attribute">margin-inline</span> <span class="number">15px</span></span><br><span class="line">        <span class="attribute">width</span> <span class="number">20px</span></span><br><span class="line">        <span class="attribute">height</span> <span class="number">20px</span></span><br><span class="line">        <span class="attribute">font-size</span> <span class="number">16px</span></span><br><span class="line">        <span class="attribute">color</span> white</span><br><span class="line">        <span class="attribute">background</span> <span class="built_in">rgb</span>(<span class="number">77</span>, <span class="number">72</span>, <span class="number">73</span>)</span><br><span class="line">        <span class="attribute">padding</span> <span class="number">5px</span></span><br><span class="line">        <span class="attribute">border-radius</span> <span class="number">50%</span></span><br><span class="line">        <span class="attribute">top</span> -<span class="number">2px</span></span><br><span class="line">        <span class="keyword">@extend</span> <span class="selector-class">.fontawesomeIcon</span></span><br><span class="line">  <span class="selector-class">.menu-child</span></span><br><span class="line">    <span class="attribute">display</span> none</span><br><span class="line">    <span class="attribute">position</span> relative</span><br><span class="line">    <span class="attribute">border</span> <span class="number">1px</span> solid</span><br><span class="line">    <span class="attribute">left</span> <span class="number">180px</span></span><br><span class="line">    <span class="attribute">border-image</span> <span class="built_in">linear-gradient</span>(to top, transparent, <span class="number">#f9f9f9</span> <span class="number">20%</span>, <span class="number">#f9f9f9</span> <span class="number">80%</span>, transparent) <span class="number">0</span> <span class="number">0</span> <span class="number">0</span> <span class="number">1</span></span><br><span class="line">    <span class="attribute">margin-left</span> <span class="number">20px</span></span><br><span class="line">    <span class="attribute">width</span> auto</span><br><span class="line">    <span class="attribute">height</span> auto</span><br><span class="line">    <span class="attribute">padding</span> <span class="number">10px</span> <span class="number">30px</span></span><br><span class="line">    <span class="selector-pseudo">&amp;:before</span></span><br><span class="line">      <span class="attribute">position</span> absolute</span><br><span class="line">      <span class="attribute">content</span> <span class="string">&#x27;&#x27;</span></span><br><span class="line">      <span class="attribute">border-right</span> <span class="number">25px</span> solid <span class="number">#f9f9f9</span></span><br><span class="line">      <span class="attribute">border-top</span> <span class="number">10px</span> solid transparent</span><br><span class="line">      <span class="attribute">border-bottom</span> <span class="number">10px</span> solid transparent</span><br><span class="line">      <span class="attribute">left</span> -<span class="number">30px</span></span><br><span class="line">      <span class="attribute">top</span> <span class="built_in">calc</span>(<span class="number">50%</span> - <span class="number">10px</span>)</span><br><span class="line">    <span class="selector-pseudo">&amp;:after</span></span><br><span class="line">      <span class="attribute">position</span> absolute</span><br><span class="line">      <span class="attribute">content</span> <span class="string">&#x27;&#x27;</span></span><br><span class="line">      <span class="attribute">border</span> <span class="number">3px</span> solid <span class="number">#333</span></span><br><span class="line">      <span class="attribute">border-radius</span> <span class="number">50%</span></span><br><span class="line">      <span class="attribute">left</span> -<span class="number">20px</span></span><br><span class="line">      <span class="attribute">top</span> <span class="number">50%</span></span><br><span class="line">      <span class="attribute">transform</span> <span class="built_in">translateY</span>(-<span class="number">50%</span>)</span><br><span class="line"></span><br><span class="line">  <span class="selector-class">.menu-list-child</span></span><br><span class="line">    <span class="attribute">display</span> block</span><br><span class="line">    <span class="attribute">border-radius</span> <span class="number">3px</span></span><br><span class="line">    <span class="attribute">background</span> <span class="built_in">rgba</span>(<span class="number">249</span>, <span class="number">249</span>, <span class="number">249</span>, <span class="number">0.79</span>)<span class="meta">!important</span></span><br><span class="line">    <span class="attribute">color</span> <span class="number">#494748</span></span><br><span class="line">    <span class="attribute">width</span> <span class="number">180px</span></span><br><span class="line">    <span class="attribute">padding</span> <span class="number">20px</span> <span class="number">25px</span></span><br><span class="line">    <span class="attribute">margin-bottom</span> <span class="number">5px</span></span><br><span class="line">    <span class="attribute">position</span> relative</span><br><span class="line">    <span class="attribute">left</span> -<span class="number">25px</span></span><br><span class="line">    <span class="attribute">top</span> <span class="number">0px</span></span><br><span class="line">    <span class="attribute">font-weight</span> bolder</span><br><span class="line">    <span class="attribute">color</span> <span class="built_in">rgb</span>(<span class="number">77</span>, <span class="number">72</span>, <span class="number">73</span>)</span><br><span class="line">    <span class="attribute">box-shadow</span> <span class="number">3px</span> <span class="number">3px</span> <span class="number">2px</span> <span class="number">#888888</span></span><br><span class="line">    <span class="attribute">height</span> <span class="number">40px</span></span><br><span class="line">    <span class="selector-pseudo">&amp;:last-child</span></span><br><span class="line">      <span class="attribute">margin-bottom</span> <span class="number">0</span></span><br><span class="line">    <span class="selector-tag">i</span></span><br><span class="line">      <span class="attribute">display</span> block</span><br><span class="line">      <span class="attribute">font-family</span> <span class="string">&#x27;SAOUI&#x27;</span> ,Langar,-apple-system, sans-serif</span><br><span class="line">      <span class="attribute">font-size</span> <span class="number">20px</span></span><br><span class="line">      <span class="attribute">vertical-align</span> super</span><br><span class="line">      <span class="attribute">position</span> absolute</span><br><span class="line">      <span class="attribute">border-radius</span> <span class="number">0</span></span><br><span class="line">      <span class="attribute">background</span> <span class="built_in">rgba</span>(<span class="number">77</span>, <span class="number">72</span>, <span class="number">73</span>,<span class="number">0</span>)<span class="meta">!important</span></span><br><span class="line">      <span class="attribute">left</span> -<span class="number">10px</span></span><br><span class="line">      <span class="attribute">width</span> <span class="number">100%</span></span><br><span class="line">      <span class="attribute">height</span> <span class="number">40px</span></span><br><span class="line">      <span class="attribute">margin-left</span> <span class="number">15px</span></span><br><span class="line">      <span class="attribute">top</span> -<span class="number">2px</span></span><br><span class="line">      <span class="attribute">left</span> -<span class="number">15px</span></span><br><span class="line">      <span class="attribute">padding-top</span> <span class="number">10px</span></span><br><span class="line">      <span class="selector-pseudo">&amp;::before</span></span><br><span class="line">        <span class="attribute">margin-inline</span> <span class="number">15px</span></span><br><span class="line">        <span class="attribute">font-size</span> <span class="number">16px</span></span><br><span class="line">        <span class="attribute">color</span> white<span class="meta">!important</span></span><br><span class="line">        <span class="attribute">width</span> <span class="number">20px</span></span><br><span class="line">        <span class="attribute">height</span> <span class="number">20px</span></span><br><span class="line">        <span class="attribute">background</span> <span class="built_in">rgb</span>(<span class="number">77</span>, <span class="number">72</span>, <span class="number">73</span>)<span class="meta">!important</span></span><br><span class="line">        <span class="attribute">padding</span> <span class="number">5px</span></span><br><span class="line">        <span class="attribute">border-radius</span> <span class="number">50%</span></span><br><span class="line">        <span class="attribute">top</span> -<span class="number">2px</span></span><br><span class="line">        <span class="keyword">@extend</span> <span class="selector-class">.fontawesomeIcon</span></span><br><span class="line">    <span class="selector-pseudo">&amp;:hover</span></span><br><span class="line">      <span class="attribute">cursor</span> pointer</span><br><span class="line">      <span class="attribute">background-color</span> <span class="number">#eda60c</span><span class="meta">!important</span></span><br><span class="line">      <span class="attribute">color</span> <span class="number">#f9f9f9</span><span class="meta">!important</span></span><br><span class="line">      <span class="selector-tag">i</span></span><br><span class="line">        <span class="selector-pseudo">&amp;::before</span></span><br><span class="line">          <span class="attribute">cursor</span> pointer</span><br><span class="line">          <span class="attribute">background-color</span> <span class="number">#f9f9f9</span><span class="meta">!important</span></span><br><span class="line">          <span class="attribute">color</span> <span class="number">#eda60c</span><span class="meta">!important</span></span><br><span class="line"></span><br><span class="line">  <span class="selector-class">.active</span></span><br><span class="line">    <span class="attribute">display</span> block<span class="meta">!important</span></span><br><span class="line">  <span class="keyword">if</span> <span class="built_in">hexo-config</span>(<span class="string">&#x27;SAO_Utils.ThreeD&#x27;</span>)</span><br><span class="line">    <span class="selector-id">#SAO-menu</span></span><br><span class="line">      <span class="attribute">animation</span> Updown <span class="number">1s</span> linear infinite alternate</span><br><span class="line">    <span class="selector-class">.utils-list-item</span></span><br><span class="line">      <span class="selector-class">.user-panel</span></span><br><span class="line">        <span class="attribute">transform</span> <span class="built_in">rotate3d</span>(<span class="number">0</span>,-<span class="number">1</span>,<span class="number">0</span>,<span class="number">20deg</span>)</span><br><span class="line"></span><br><span class="line">    <span class="selector-class">.menu-list</span></span><br><span class="line">      <span class="attribute">transform</span> <span class="built_in">rotate3d</span>(<span class="number">0</span>,<span class="number">1</span>,<span class="number">0</span>,<span class="number">20deg</span>)</span><br><span class="line"></span><br><span class="line">    <span class="selector-class">.menu-child</span></span><br><span class="line">      <span class="attribute">transform</span> <span class="built_in">rotate3d</span>(<span class="number">0</span>,<span class="number">1</span>,<span class="number">0</span>,<span class="number">5deg</span>)</span><br><span class="line">    <span class="selector-class">.user-panel</span></span><br><span class="line">      <span class="selector-class">.user-panel-img</span></span><br><span class="line">        <span class="attribute">box-shadow</span> -<span class="number">1px</span> <span class="number">10px</span> <span class="number">15px</span> <span class="number">#888888</span></span><br><span class="line">    <span class="keyword">@keyframes</span> Updown</span><br><span class="line">      from</span><br><span class="line">        <span class="attribute">margin-top</span> <span class="number">20px</span></span><br><span class="line">      to</span><br><span class="line">        <span class="attribute">margin-top</span> <span class="number">10px</span></span><br><span class="line">  <span class="keyword">if</span> <span class="built_in">hexo-config</span>(<span class="string">&#x27;SAO_Utils.hoverShow&#x27;</span>) ? <span class="built_in">hexo-config</span>(<span class="string">&#x27;SAO_Utils.hoverShow&#x27;</span>) : <span class="number">1</span></span><br><span class="line">    <span class="selector-class">.utils-list-item</span></span><br><span class="line">      <span class="selector-pseudo">&amp;:hover</span></span><br><span class="line">        <span class="selector-class">.user-panel</span></span><br><span class="line">          <span class="attribute">display</span> block</span><br><span class="line">          <span class="attribute">z-index</span> <span class="number">10000</span></span><br><span class="line">    <span class="selector-class">.menu-list-item</span></span><br><span class="line">      <span class="selector-pseudo">&amp;:hover</span></span><br><span class="line">        <span class="selector-class">.menu-child</span></span><br><span class="line">          <span class="attribute">display</span> block</span><br><span class="line">          <span class="attribute">z-index</span> <span class="number">10000</span></span><br><span class="line"></span><br><span class="line">  <span class="keyword">if</span> <span class="built_in">hexo-config</span>(<span class="string">&#x27;SAO_Utils.Instructions&#x27;</span>) ? <span class="built_in">hexo-config</span>(<span class="string">&#x27;SAO_Utils.Instructions&#x27;</span>) : <span class="number">1</span></span><br><span class="line">    <span class="selector-id">#SAO-logout</span></span><br><span class="line">      <span class="attribute">z-index</span> <span class="number">9999</span></span><br><span class="line">      <span class="attribute">background</span> <span class="built_in">rgba</span>(<span class="number">204</span>, <span class="number">204</span>, <span class="number">207</span>,<span class="number">0.8</span>)</span><br><span class="line">      <span class="attribute">font-family</span> <span class="string">&#x27;SAOUI&#x27;</span> ,Langar,-apple-system, sans-serif</span><br><span class="line">      <span class="attribute">font-weight</span> bolder</span><br><span class="line">      <span class="attribute">text-shadow</span> <span class="number">1px</span> <span class="number">1px</span> <span class="number">1px</span> <span class="number">#888888</span></span><br><span class="line">      <span class="attribute">height</span> <span class="number">240px</span></span><br><span class="line">      <span class="attribute">width</span> <span class="number">350px</span></span><br><span class="line">      <span class="attribute">display</span> none</span><br><span class="line">      <span class="attribute">position</span> fixed</span><br><span class="line">      <span class="attribute">left</span> <span class="number">0</span></span><br><span class="line">      <span class="attribute">right</span> <span class="number">0</span></span><br><span class="line">      <span class="attribute">top</span> <span class="number">0</span></span><br><span class="line">      <span class="attribute">bottom</span> <span class="number">0</span></span><br><span class="line">      <span class="attribute">margin</span> auto</span><br><span class="line">      <span class="attribute">border-radius</span> <span class="number">5px</span></span><br><span class="line">      <span class="attribute">box-shadow</span> <span class="number">2px</span> <span class="number">2px</span> <span class="number">10px</span> <span class="number">#888888</span></span><br><span class="line"></span><br><span class="line">    <span class="selector-class">.logout-title</span></span><br><span class="line">      <span class="attribute">background</span> <span class="built_in">rgba</span>(<span class="number">249</span>, <span class="number">249</span>, <span class="number">249</span>, <span class="number">0.8</span>)</span><br><span class="line">      <span class="attribute">color</span> <span class="built_in">rgba</span>(<span class="number">60</span>, <span class="number">60</span>, <span class="number">61</span>,<span class="number">0.7</span>)</span><br><span class="line">      <span class="attribute">height</span> <span class="number">60px</span></span><br><span class="line">      <span class="attribute">width</span> <span class="number">100%</span></span><br><span class="line">      <span class="attribute">display</span> block</span><br><span class="line">      <span class="attribute">font-size</span> <span class="number">20px</span></span><br><span class="line">      <span class="attribute">text-align</span> center</span><br><span class="line">      <span class="attribute">border-top-left-radius</span> <span class="number">5px</span></span><br><span class="line">      <span class="attribute">border-top-right-radius</span> <span class="number">5px</span></span><br><span class="line">      <span class="attribute">padding-top</span> <span class="number">10px</span></span><br><span class="line"></span><br><span class="line">    <span class="selector-class">.logout-alert</span></span><br><span class="line">      <span class="attribute">background</span> <span class="built_in">rgba</span>(<span class="number">220</span>, <span class="number">220</span>, <span class="number">220</span>,<span class="number">0.8</span>)</span><br><span class="line">      <span class="attribute">color</span> <span class="built_in">rgba</span>(<span class="number">60</span>, <span class="number">60</span>, <span class="number">61</span>,<span class="number">0.7</span>)</span><br><span class="line">      <span class="attribute">height</span> <span class="number">90px</span></span><br><span class="line">      <span class="attribute">width</span> <span class="number">100%</span></span><br><span class="line">      <span class="attribute">display</span> block</span><br><span class="line">      <span class="attribute">text-align</span> center</span><br><span class="line">      <span class="attribute">padding-top</span> <span class="number">30px</span></span><br><span class="line">      <span class="attribute">box-shadow</span> <span class="number">0px</span> <span class="number">0px</span> <span class="number">15px</span> <span class="built_in">rgb</span>(<span class="number">188</span>, <span class="number">188</span>, <span class="number">188</span>) inset</span><br><span class="line"></span><br><span class="line">    <span class="selector-class">.logout-button</span></span><br><span class="line">      <span class="attribute">background</span> <span class="built_in">rgba</span>(<span class="number">249</span>, <span class="number">249</span>, <span class="number">249</span>, <span class="number">0.8</span>)</span><br><span class="line">      <span class="attribute">height</span> <span class="number">90px</span></span><br><span class="line">      <span class="attribute">width</span> <span class="number">100%</span></span><br><span class="line">      <span class="attribute">display</span> block</span><br><span class="line">      <span class="attribute">text-align</span> center</span><br><span class="line">      <span class="attribute">border-bottom-left-radius</span> <span class="number">5px</span></span><br><span class="line">      <span class="attribute">border-bottom-right-radius</span> <span class="number">5px</span></span><br><span class="line">      <span class="attribute">padding-top</span> <span class="number">30px</span></span><br><span class="line"></span><br><span class="line">    <span class="selector-class">.logout-confirm</span></span><br><span class="line">      <span class="attribute">background</span> <span class="built_in">rgba</span>(<span class="number">#2f79d4</span>,<span class="number">0</span>)</span><br><span class="line">      <span class="attribute">border-radius</span> <span class="number">50%</span></span><br><span class="line">      <span class="attribute">display</span> inline-block</span><br><span class="line">      <span class="attribute">width</span> <span class="number">36px</span></span><br><span class="line">      <span class="attribute">height</span> <span class="number">36px</span></span><br><span class="line">      <span class="attribute">margin-inline</span> <span class="number">60px</span></span><br><span class="line">      <span class="attribute">border</span> <span class="number">1px</span> solid</span><br><span class="line">      <span class="attribute">border-color</span> <span class="number">#2f79d4</span></span><br><span class="line">      <span class="selector-tag">button</span></span><br><span class="line">        <span class="attribute">background</span> <span class="number">#2f79d4</span></span><br><span class="line">        <span class="attribute">text-align</span> center</span><br><span class="line">        <span class="attribute">border-radius</span> <span class="number">50%</span></span><br><span class="line">        <span class="attribute">font-size</span> <span class="number">18px</span></span><br><span class="line">        <span class="attribute">color</span> white</span><br><span class="line">        <span class="attribute">display</span> block</span><br><span class="line">        <span class="attribute">width</span> <span class="number">30px</span></span><br><span class="line">        <span class="attribute">height</span> <span class="number">30px</span></span><br><span class="line">        <span class="attribute">margin</span> <span class="number">2px</span></span><br><span class="line"></span><br><span class="line">    <span class="selector-class">.logout-cancel</span></span><br><span class="line">      <span class="attribute">background</span> <span class="built_in">rgba</span>(<span class="number">#cb3749</span>,<span class="number">0</span>)</span><br><span class="line">      <span class="attribute">border-radius</span> <span class="number">50%</span></span><br><span class="line">      <span class="attribute">display</span> inline-block</span><br><span class="line">      <span class="attribute">width</span> <span class="number">36px</span></span><br><span class="line">      <span class="attribute">height</span> <span class="number">36px</span></span><br><span class="line">      <span class="attribute">margin-inline</span> <span class="number">60px</span></span><br><span class="line">      <span class="attribute">border</span> <span class="number">1px</span> solid</span><br><span class="line">      <span class="attribute">border-color</span> <span class="number">#cb3749</span></span><br><span class="line">      <span class="selector-tag">button</span></span><br><span class="line">        <span class="attribute">background</span> <span class="number">#cb3749</span></span><br><span class="line">        <span class="attribute">text-align</span> center</span><br><span class="line">        <span class="attribute">border-radius</span> <span class="number">50%</span></span><br><span class="line">        <span class="attribute">font-size</span> <span class="number">18px</span></span><br><span class="line">        <span class="attribute">font-weight</span> bolder</span><br><span class="line">        <span class="attribute">color</span> white</span><br><span class="line">        <span class="attribute">display</span> block</span><br><span class="line">        <span class="attribute">width</span> <span class="number">30px</span></span><br><span class="line">        <span class="attribute">height</span> <span class="number">30px</span></span><br><span class="line">        <span class="attribute">margin</span> <span class="number">2px</span></span><br><span class="line"></span><br><span class="line">    <span class="selector-class">.activeLogout</span></span><br><span class="line">      <span class="attribute">display</span> block<span class="meta">!important</span></span><br><span class="line">      <span class="attribute">animation</span> flashOpen <span class="number">1s</span> ease alternate</span><br><span class="line"></span><br><span class="line">    <span class="keyword">@keyframes</span> flashOpen</span><br><span class="line">      from</span><br><span class="line">        <span class="attribute">transform</span> <span class="built_in">rotateX</span>(<span class="number">90deg</span>)</span><br><span class="line">      to</span><br><span class="line">        <span class="attribute">transform</span> <span class="built_in">rotateX</span>(<span class="number">0deg</span>)</span><br></pre></td></tr></table></figure></li><li>修改<code>[Blogroot]\themes\butterfly\layout\includes\additional-js.pug</code>,引入右键菜单网页元素，注意<code>butterfly_v3.6.0</code>取消了缓存配置，转为完全默认，需要将<code>{cache:theme.fragment_cache}</code>改为<code>{cache: true}</code>:<figure class="highlight diff"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">  if theme.pjax.enable</span><br><span class="line">    !=partial(&#x27;includes/third-party/pjax&#x27;, &#123;&#125;, &#123;cache:theme.fragment_cache&#125;)</span><br><span class="line"></span><br><span class="line">  !=partial(&#x27;includes/third-party/baidu_push&#x27;, &#123;&#125;, &#123;cache:theme.fragment_cache&#125;)</span><br><span class="line"></span><br><span class="line"><span class="addition">+ if theme.SAO_Utils.enable</span></span><br><span class="line"><span class="addition">+   !=partial(&#x27;includes/SAO-menu&#x27;, &#123;&#125;, &#123;cache:theme.fragment_cache&#125;)</span></span><br></pre></td></tr></table></figure></li><li>新建<code>[Blogroot]\themes\butterfly\source\js\SAO_Menu.js</code>,控制右键菜单的显隐。此处的脚本引入使用了<code>async</code>异步加载。因为全部都是触发类函数，在监听到相应的点击或悬停事件之前不会执行，所以甚至不会有加载完成后执行脚本的那段阻塞时间。<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br><span class="line">165</span><br><span class="line">166</span><br><span class="line">167</span><br><span class="line">168</span><br><span class="line">169</span><br><span class="line">170</span><br><span class="line">171</span><br><span class="line">172</span><br><span class="line">173</span><br><span class="line">174</span><br><span class="line">175</span><br><span class="line">176</span><br><span class="line">177</span><br><span class="line">178</span><br><span class="line">179</span><br><span class="line">180</span><br><span class="line">181</span><br><span class="line">182</span><br><span class="line">183</span><br><span class="line">184</span><br><span class="line">185</span><br><span class="line">186</span><br><span class="line">187</span><br><span class="line">188</span><br><span class="line">189</span><br><span class="line">190</span><br><span class="line">191</span><br><span class="line">192</span><br><span class="line">193</span><br><span class="line">194</span><br><span class="line">195</span><br><span class="line">196</span><br><span class="line">197</span><br><span class="line">198</span><br><span class="line">199</span><br><span class="line">200</span><br><span class="line">201</span><br><span class="line">202</span><br><span class="line">203</span><br><span class="line">204</span><br><span class="line">205</span><br><span class="line">206</span><br><span class="line">207</span><br><span class="line">208</span><br><span class="line">209</span><br><span class="line">210</span><br><span class="line">211</span><br><span class="line">212</span><br><span class="line">213</span><br><span class="line">214</span><br><span class="line">215</span><br><span class="line">216</span><br><span class="line">217</span><br><span class="line">218</span><br><span class="line">219</span><br><span class="line">220</span><br><span class="line">221</span><br><span class="line">222</span><br><span class="line">223</span><br><span class="line">224</span><br><span class="line">225</span><br><span class="line">226</span><br><span class="line">227</span><br><span class="line">228</span><br><span class="line">229</span><br><span class="line">230</span><br><span class="line">231</span><br><span class="line">232</span><br><span class="line">233</span><br><span class="line">234</span><br><span class="line">235</span><br><span class="line">236</span><br><span class="line">237</span><br><span class="line">238</span><br><span class="line">239</span><br><span class="line">240</span><br><span class="line">241</span><br><span class="line">242</span><br><span class="line">243</span><br><span class="line">244</span><br><span class="line">245</span><br><span class="line">246</span><br><span class="line">247</span><br><span class="line">248</span><br><span class="line">249</span><br><span class="line">250</span><br><span class="line">251</span><br><span class="line">252</span><br><span class="line">253</span><br><span class="line">254</span><br><span class="line">255</span><br><span class="line">256</span><br><span class="line">257</span><br><span class="line">258</span><br><span class="line">259</span><br><span class="line">260</span><br><span class="line">261</span><br><span class="line">262</span><br><span class="line">263</span><br><span class="line">264</span><br><span class="line">265</span><br><span class="line">266</span><br><span class="line">267</span><br><span class="line">268</span><br><span class="line">269</span><br><span class="line">270</span><br><span class="line">271</span><br><span class="line">272</span><br><span class="line">273</span><br><span class="line">274</span><br><span class="line">275</span><br><span class="line">276</span><br><span class="line">277</span><br><span class="line">278</span><br><span class="line">279</span><br><span class="line">280</span><br><span class="line">281</span><br><span class="line">282</span><br><span class="line">283</span><br><span class="line">284</span><br><span class="line">285</span><br><span class="line">286</span><br><span class="line">287</span><br><span class="line">288</span><br><span class="line">289</span><br><span class="line">290</span><br><span class="line">291</span><br><span class="line">292</span><br><span class="line">293</span><br><span class="line">294</span><br><span class="line">295</span><br><span class="line">296</span><br><span class="line">297</span><br><span class="line">298</span><br><span class="line">299</span><br><span class="line">300</span><br><span class="line">301</span><br><span class="line">302</span><br><span class="line">303</span><br><span class="line">304</span><br><span class="line">305</span><br></pre></td><td class="code"><pre><span class="line"><span class="variable language_">window</span>.<span class="property">document</span>.<span class="property">oncontextmenu</span> = <span class="keyword">function</span>(<span class="params">event</span>) &#123;</span><br><span class="line">  <span class="keyword">if</span> (event.<span class="property">ctrlKey</span>) <span class="keyword">return</span> <span class="literal">true</span>; <span class="comment">//ctrl+右键 使用原生右键</span></span><br><span class="line">  <span class="keyword">if</span> (<span class="regexp">/Android|webOS|BlackBerry/i</span>.<span class="title function_">test</span>(navigator.<span class="property">userAgent</span>)) <span class="keyword">return</span> <span class="literal">true</span>; <span class="comment">//媒体选择</span></span><br><span class="line">  <span class="keyword">if</span> (<span class="variable language_">localStorage</span>.<span class="title function_">getItem</span>(<span class="string">&quot;SAOSwitch&quot;</span>)===<span class="string">&#x27;turnOff&#x27;</span>) <span class="keyword">return</span> <span class="literal">true</span> <span class="comment">//若持续关闭标记值为turnoff则使用原生菜单</span></span><br><span class="line">  <span class="keyword">return</span> <span class="title function_">popMenu</span>(event); <span class="comment">//打开右键菜单</span></span><br><span class="line">&#125;;</span><br><span class="line"></span><br><span class="line"><span class="comment">//监听位移动作，实现拖动效果</span></span><br><span class="line"><span class="keyword">var</span> dv = <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">&quot;SAO-menu&quot;</span>);</span><br><span class="line"><span class="keyword">var</span> x = <span class="number">0</span>;</span><br><span class="line"><span class="keyword">var</span> y = <span class="number">0</span>;</span><br><span class="line"><span class="keyword">var</span> l = <span class="number">0</span>;</span><br><span class="line"><span class="keyword">var</span> t = <span class="number">0</span>;</span><br><span class="line"><span class="keyword">var</span> isDown = <span class="literal">false</span>;</span><br><span class="line">dv.<span class="property">onmousedown</span> = <span class="keyword">function</span>(<span class="params">e</span>) &#123;</span><br><span class="line">  x = e.<span class="property">clientX</span>;</span><br><span class="line">  y = e.<span class="property">clientY</span>;</span><br><span class="line">  l = dv.<span class="property">offsetLeft</span>;</span><br><span class="line">  t = dv.<span class="property">offsetTop</span>;</span><br><span class="line">  isDown = <span class="literal">true</span>;</span><br><span class="line">  dv.<span class="property">style</span>.<span class="property">cursor</span> = <span class="string">&quot;move&quot;</span></span><br><span class="line">&#125;;</span><br><span class="line"><span class="variable language_">window</span>.<span class="property">onmousemove</span> = <span class="keyword">function</span>(<span class="params">e</span>) &#123;</span><br><span class="line">  <span class="keyword">if</span> (isDown == <span class="literal">false</span>) &#123;</span><br><span class="line">    <span class="keyword">return</span></span><br><span class="line">  &#125;</span><br><span class="line">  <span class="keyword">var</span> nx = e.<span class="property">clientX</span>;</span><br><span class="line">  <span class="keyword">var</span> ny = e.<span class="property">clientY</span>;</span><br><span class="line">  <span class="keyword">var</span> nl = nx - (x - l);</span><br><span class="line">  <span class="keyword">var</span> nt = ny - (y - t);</span><br><span class="line">  dv.<span class="property">style</span>.<span class="property">left</span> = nl + <span class="string">&quot;px&quot;</span>;</span><br><span class="line">  dv.<span class="property">style</span>.<span class="property">top</span> = nt + <span class="string">&quot;px&quot;</span></span><br><span class="line">&#125;;</span><br><span class="line">dv.<span class="property">onmouseup</span> = <span class="keyword">function</span>(<span class="params"></span>) &#123;</span><br><span class="line">  isDown = <span class="literal">false</span>;</span><br><span class="line">  dv.<span class="property">style</span>.<span class="property">cursor</span> = <span class="string">&quot;default&quot;</span></span><br><span class="line">&#125;;</span><br><span class="line"><span class="comment">//监听鼠标点击动作，点击空白处关闭菜单</span></span><br><span class="line"><span class="variable language_">document</span>.<span class="title function_">addEventListener</span>(<span class="string">&quot;click&quot;</span>, <span class="keyword">function</span>(<span class="params">event</span>) &#123;</span><br><span class="line">  <span class="keyword">if</span> (event.<span class="property">target</span>.<span class="property">id</span> === <span class="string">&#x27;SAO-back&#x27;</span>)&#123;</span><br><span class="line">    <span class="title class_">SAOclose</span>()</span><br><span class="line">  &#125;</span><br><span class="line">&#125;);</span><br><span class="line"><span class="comment">//关闭菜单</span></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">SAOclose</span>(<span class="params"></span>) &#123;</span><br><span class="line">    <span class="keyword">var</span> mymenu = <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">&#x27;SAO-back&#x27;</span>);</span><br><span class="line">    mymenu.<span class="property">style</span>.<span class="property">display</span> = <span class="string">&quot;none&quot;</span>;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="comment">//初始化，隐藏所有active类</span></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">SAOinit</span>(<span class="params"></span>) &#123;</span><br><span class="line">  <span class="keyword">var</span> activedItems = <span class="variable language_">document</span>.<span class="title function_">querySelectorAll</span>(<span class="string">&#x27;.active&#x27;</span>);</span><br><span class="line">  <span class="keyword">if</span> (activedItems) &#123;</span><br><span class="line">    <span class="keyword">for</span> (i = <span class="number">0</span>; i &lt; activedItems.<span class="property">length</span>; i++) &#123;</span><br><span class="line">      activedItems[i].<span class="property">classList</span>.<span class="title function_">remove</span>(<span class="string">&#x27;active&#x27;</span>);</span><br><span class="line">    &#125;</span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br><span class="line"><span class="comment">//二级菜单初始化，隐藏所有三级菜单的active类</span></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">Menuinit</span>(<span class="params">menu</span>) &#123;</span><br><span class="line">  <span class="keyword">var</span> activedChild = menu.<span class="title function_">querySelectorAll</span>(<span class="string">&#x27;.active&#x27;</span>);</span><br><span class="line">  <span class="keyword">if</span> (activedChild) &#123;</span><br><span class="line">    <span class="keyword">for</span> (i = <span class="number">0</span>; i &lt; activedChild.<span class="property">length</span>; i++) &#123;</span><br><span class="line">      activedChild[i].<span class="property">classList</span>.<span class="title function_">remove</span>(<span class="string">&#x27;active&#x27;</span>);</span><br><span class="line">    &#125;</span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br><span class="line"><span class="comment">//link start,处理链接跳转的pjax请求；调用了主题自带的pjax对象。其他主题需要另外适配。</span></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">linkStart</span>(<span class="params">link</span>)&#123;</span><br><span class="line">  <span class="keyword">if</span> (link.<span class="title function_">includes</span>(<span class="string">&#x27;https://&#x27;</span>) || link.<span class="title function_">includes</span>(<span class="string">&#x27;http://&#x27;</span>) )&#123;</span><br><span class="line">    <span class="variable language_">window</span>.<span class="property">location</span>.<span class="property">href</span> = link;</span><br><span class="line">  &#125;</span><br><span class="line">  <span class="keyword">else</span>&#123;</span><br><span class="line">    <span class="keyword">if</span> (pjax)&#123;</span><br><span class="line">      pjax.<span class="title function_">loadUrl</span>(link);</span><br><span class="line">    &#125;</span><br><span class="line">    <span class="keyword">else</span>&#123;</span><br><span class="line">      <span class="variable language_">window</span>.<span class="property">location</span>.<span class="property">href</span> = link;</span><br><span class="line">    &#125;</span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br><span class="line"><span class="comment">//点击菜单内元素播放点击音频</span></span><br><span class="line"><span class="comment">//无子菜单时，点击音效</span></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">clickAudio</span>(<span class="params"></span>) &#123;</span><br><span class="line">  <span class="keyword">var</span> clickAudio = <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">&quot;SAOClick&quot;</span>);</span><br><span class="line">  <span class="keyword">if</span> (clickAudio) &#123;</span><br><span class="line">    clickAudio.<span class="title function_">play</span>();<span class="comment">//有音频时播放</span></span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br><span class="line"><span class="comment">//有子菜单时，展开音效</span></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">panelAudio</span>(<span class="params"></span>) &#123;</span><br><span class="line">  <span class="keyword">var</span> panelAudio = <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">&quot;SAOPanel&quot;</span>);</span><br><span class="line">  <span class="keyword">if</span> (panelAudio) &#123;</span><br><span class="line">    panelAudio.<span class="title function_">play</span>();<span class="comment">//有音频时播放</span></span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br><span class="line"><span class="comment">//警告音效</span></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">alertAudio</span>(<span class="params"></span>) &#123;</span><br><span class="line">  <span class="keyword">var</span> alertAudio = <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">&quot;SAOAlert&quot;</span>);</span><br><span class="line">  <span class="keyword">if</span> (alertAudio) &#123;</span><br><span class="line">    alertAudio.<span class="title function_">play</span>();<span class="comment">//有音频时播放</span></span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br><span class="line"><span class="comment">//关闭当前页面</span></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">confirmLogout</span>(<span class="params"></span>)&#123;</span><br><span class="line">  <span class="built_in">setTimeout</span>(<span class="keyword">function</span>(<span class="params"></span>)&#123;</span><br><span class="line">    <span class="variable language_">window</span>.<span class="property">opener</span>=<span class="literal">null</span>;</span><br><span class="line">    <span class="variable language_">window</span>.<span class="title function_">open</span>(<span class="string">&#x27;&#x27;</span>,<span class="string">&#x27;_self&#x27;</span>);</span><br><span class="line">    <span class="variable language_">window</span>.<span class="title function_">close</span>();</span><br><span class="line">  &#125;,<span class="number">500</span>);</span><br><span class="line">&#125;</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">openLogout</span>(<span class="params"></span>)&#123;</span><br><span class="line">  <span class="title class_">SAOclose</span>();</span><br><span class="line">  <span class="keyword">var</span> logoutWindow = <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">&#x27;SAO-logout&#x27;</span>);</span><br><span class="line">  logoutWindow.<span class="property">classList</span>.<span class="title function_">add</span>(<span class="string">&#x27;activeLogout&#x27;</span>);</span><br><span class="line">&#125;</span><br><span class="line"><span class="keyword">function</span> <span class="title function_">cancelLogout</span>(<span class="params"></span>)&#123;</span><br><span class="line">  <span class="keyword">var</span> logoutWindow = <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">&#x27;SAO-logout&#x27;</span>);</span><br><span class="line">  logoutWindow.<span class="property">classList</span>.<span class="title function_">remove</span>(<span class="string">&#x27;activeLogout&#x27;</span>);</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="comment">//监听一级菜单点击动作，控制二级菜单显隐</span></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">UtilsClick</span>(<span class="params"></span>)&#123;</span><br><span class="line">  <span class="keyword">var</span> thisElement = event.<span class="property">target</span>;</span><br><span class="line">  <span class="comment">// console.log(&#x27;click at&#x27;, thisElement);</span></span><br><span class="line">  <span class="keyword">var</span> hasMenu = thisElement.<span class="property">parentElement</span>.<span class="title function_">querySelector</span>(<span class="string">&#x27;.menu-list&#x27;</span>);</span><br><span class="line">  <span class="keyword">var</span> hasPanel = thisElement.<span class="property">parentElement</span>.<span class="title function_">querySelector</span>(<span class="string">&#x27;.user-panel&#x27;</span>);</span><br><span class="line">  <span class="keyword">var</span> hasActived = thisElement.<span class="property">parentElement</span>.<span class="title function_">querySelector</span>(<span class="string">&#x27;.active&#x27;</span>);</span><br><span class="line">  <span class="comment">//当有二级菜单或属性栏被激活时</span></span><br><span class="line">  <span class="keyword">if</span> (hasActived)&#123;</span><br><span class="line">    <span class="comment">// console.log(&#x27;hasmenu or haspanel]&#x27;);</span></span><br><span class="line">    <span class="comment">//如果有二级菜单且已经激活，则重新隐藏二级菜单</span></span><br><span class="line">    <span class="keyword">if</span> (hasMenu &amp;&amp; (hasMenu.<span class="property">className</span>.<span class="title function_">indexOf</span>(<span class="string">&#x27;active&#x27;</span>) &gt; -<span class="number">1</span>) )&#123;</span><br><span class="line">      hasMenu.<span class="property">classList</span>.<span class="title function_">remove</span>(<span class="string">&#x27;active&#x27;</span>);</span><br><span class="line">    &#125;</span><br><span class="line">    <span class="comment">//如果有属性栏且已经激活，则重新隐藏属性栏</span></span><br><span class="line">    <span class="keyword">if</span> (hasPanel &amp;&amp; (hasPanel.<span class="property">className</span>.<span class="title function_">indexOf</span>(<span class="string">&#x27;active&#x27;</span>) &gt; -<span class="number">1</span>) )&#123;</span><br><span class="line">      hasPanel.<span class="property">classList</span>.<span class="title function_">remove</span>(<span class="string">&#x27;active&#x27;</span>);</span><br><span class="line">    &#125;</span><br><span class="line">  &#125;</span><br><span class="line">  <span class="keyword">else</span>&#123;</span><br><span class="line">    <span class="title class_">SAOinit</span>();<span class="comment">//先初始化以清除其他的激活项</span></span><br><span class="line">    <span class="comment">//若有二级菜单就显示二级菜单</span></span><br><span class="line">    <span class="keyword">if</span> (hasMenu) &#123;</span><br><span class="line">      hasMenu.<span class="property">classList</span>.<span class="title function_">add</span>(<span class="string">&#x27;active&#x27;</span>);</span><br><span class="line">    &#125;</span><br><span class="line">    <span class="comment">//若有属性栏，就显示属性栏</span></span><br><span class="line">    <span class="keyword">if</span> (hasPanel) &#123;</span><br><span class="line">      hasPanel.<span class="property">classList</span>.<span class="title function_">add</span>(<span class="string">&#x27;active&#x27;</span>);</span><br><span class="line">    &#125;</span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br><span class="line"><span class="comment">//监听二级菜单点击动作，控制三级菜单显隐</span></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">MenusClick</span>(<span class="params"></span>)&#123;</span><br><span class="line">  <span class="keyword">var</span> thisElement = event.<span class="property">target</span>;</span><br><span class="line">  <span class="comment">// console.log(&#x27;click at&#x27;, thisElement);</span></span><br><span class="line">  <span class="comment">//当前按钮指向的三级菜单</span></span><br><span class="line">  <span class="keyword">var</span> hasChild = thisElement.<span class="property">parentElement</span>.<span class="title function_">querySelector</span>(<span class="string">&#x27;.menu-child&#x27;</span>);</span><br><span class="line">  <span class="comment">//当前按钮所在的二级菜单</span></span><br><span class="line">  <span class="keyword">var</span> menuParent = thisElement.<span class="property">parentElement</span>.<span class="property">parentElement</span>;</span><br><span class="line">  <span class="keyword">if</span> (hasChild) &#123;</span><br><span class="line">    <span class="comment">//若已经激活了，则再点击就隐藏；</span></span><br><span class="line">    <span class="keyword">if</span> (hasChild.<span class="property">className</span>.<span class="title function_">indexOf</span>(<span class="string">&#x27;active&#x27;</span>) &gt; -<span class="number">1</span>) &#123;</span><br><span class="line">      hasChild.<span class="property">classList</span>.<span class="title function_">remove</span>(<span class="string">&#x27;active&#x27;</span>);</span><br><span class="line">    &#125;</span><br><span class="line">    <span class="comment">//若未激活</span></span><br><span class="line">    <span class="keyword">else</span>&#123;</span><br><span class="line">      <span class="title class_">Menuinit</span>(menuParent);<span class="comment">//先初始化以清除其他的激活项</span></span><br><span class="line">      hasChild.<span class="property">classList</span>.<span class="title function_">add</span>(<span class="string">&#x27;active&#x27;</span>);<span class="comment">//再给当前子菜单添加激活</span></span><br><span class="line">    &#125;</span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">popMenu</span>(<span class="params">event</span>) &#123;</span><br><span class="line">  <span class="comment">//播放菜单打开音乐</span></span><br><span class="line">  <span class="title class_">SAOinit</span>();</span><br><span class="line">  <span class="keyword">var</span> audio = <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">&quot;SAOlauncher&quot;</span>);</span><br><span class="line">  <span class="keyword">if</span> (audio) &#123;</span><br><span class="line">    audio.<span class="title function_">play</span>();<span class="comment">//有音乐时打开</span></span><br><span class="line">  &#125;</span><br><span class="line">  <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">&#x27;SAO-back&#x27;</span>).<span class="property">style</span>.<span class="property">display</span> = <span class="string">&quot;block&quot;</span>;</span><br><span class="line">  <span class="keyword">var</span> mymenu = <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">&#x27;SAO-menu&#x27;</span>);</span><br><span class="line">  <span class="keyword">var</span> screenWidth = <span class="variable language_">document</span>.<span class="property">documentElement</span>.<span class="property">clientWidth</span> || <span class="variable language_">document</span>.<span class="property">body</span>.<span class="property">clientWidth</span>;</span><br><span class="line">  <span class="keyword">var</span> screenHeight = <span class="variable language_">document</span>.<span class="property">documentElement</span>.<span class="property">clientHeight</span> || <span class="variable language_">document</span>.<span class="property">body</span>.<span class="property">clientHeight</span>;</span><br><span class="line">  <span class="comment">// 菜单显示</span></span><br><span class="line">  mymenu.<span class="property">style</span>.<span class="property">display</span> = <span class="string">&#x27;block&#x27;</span>;</span><br><span class="line"></span><br><span class="line">  <span class="comment">//---- start 点击位置旁边生成。不自动判断位置</span></span><br><span class="line">  <span class="comment">// mymenu.style.left = (event.clientX + mymenu.clientWidth/2) + &quot;px&quot;;</span></span><br><span class="line">  <span class="comment">// mymenu.style.top = (event.clientY - mymenu.clientHeight/2) + &quot;px&quot;;</span></span><br><span class="line">  <span class="comment">//--- end 点击位置旁边生成。不自动判断位置</span></span><br><span class="line">  <span class="comment">//---- start 自动判断确保给菜单边缘留下足够位置</span></span><br><span class="line">  <span class="comment">//根据当前位置决定菜单出现位置，确保菜单可完整显示</span></span><br><span class="line">  <span class="keyword">var</span> currentX = event.<span class="property">clientX</span>;</span><br><span class="line">  <span class="keyword">var</span> currentY = event.<span class="property">clientY</span>;</span><br><span class="line">  <span class="comment">//X轴判断</span></span><br><span class="line">  <span class="comment">//偏左</span></span><br><span class="line">  <span class="keyword">if</span> (currentX &lt; <span class="number">230</span>)&#123;</span><br><span class="line">    mymenu.<span class="property">style</span>.<span class="property">left</span> = (mymenu.<span class="property">clientWidth</span>/<span class="number">2</span> + <span class="number">230</span>)  + <span class="string">&quot;px&quot;</span>;</span><br><span class="line">  &#125;</span><br><span class="line">  <span class="comment">//偏右</span></span><br><span class="line">  <span class="keyword">else</span> <span class="keyword">if</span> ((screenWidth - currentX) &lt; <span class="number">320</span> )&#123;</span><br><span class="line">    mymenu.<span class="property">style</span>.<span class="property">left</span> = (mymenu.<span class="property">clientWidth</span>/<span class="number">2</span> - <span class="number">320</span> + screenWidth) + <span class="string">&quot;px&quot;</span>;</span><br><span class="line">  &#125;</span><br><span class="line">  <span class="comment">//默认情况</span></span><br><span class="line">  <span class="keyword">else</span>&#123;</span><br><span class="line">    mymenu.<span class="property">style</span>.<span class="property">left</span> = (currentX + mymenu.<span class="property">clientWidth</span>/<span class="number">2</span>) + <span class="string">&quot;px&quot;</span>;</span><br><span class="line">  &#125;</span><br><span class="line">  <span class="comment">//Y轴判断</span></span><br><span class="line">  <span class="comment">//偏高</span></span><br><span class="line">  <span class="keyword">if</span> (currentY &lt; (mymenu.<span class="property">clientHeight</span>/<span class="number">2</span> + <span class="number">130</span>))&#123;</span><br><span class="line">    mymenu.<span class="property">style</span>.<span class="property">top</span> = <span class="string">&quot;130px&quot;</span>;</span><br><span class="line">  &#125;</span><br><span class="line">  <span class="comment">//偏低</span></span><br><span class="line">  <span class="keyword">else</span> <span class="keyword">if</span> ((screenHeight - currentY) &lt; (<span class="number">80</span> + mymenu.<span class="property">clientHeight</span>/<span class="number">2</span>))&#123;</span><br><span class="line">    mymenu.<span class="property">style</span>.<span class="property">top</span> = ( screenHeight - mymenu.<span class="property">clientHeight</span> - <span class="number">80</span>) + <span class="string">&quot;px&quot;</span>;</span><br><span class="line">  &#125;</span><br><span class="line">  <span class="comment">//默认情况</span></span><br><span class="line">  <span class="keyword">else</span> &#123;</span><br><span class="line">    mymenu.<span class="property">style</span>.<span class="property">top</span> = (event.<span class="property">clientY</span> - mymenu.<span class="property">clientHeight</span>/<span class="number">2</span>) + <span class="string">&quot;px&quot;</span>;</span><br><span class="line">  &#125;</span><br><span class="line">  <span class="comment">//---- end 自动判断确保给菜单边缘留下足够位置</span></span><br><span class="line">  <span class="comment">//屏蔽原生菜单</span></span><br><span class="line">  <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line">&#125;</span><br><span class="line"><span class="comment">//自定义动作</span></span><br><span class="line"><span class="comment">//搜索按钮动作</span></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">openSearch</span>(<span class="params"></span>) &#123;</span><br><span class="line">  <span class="variable language_">document</span>.<span class="property">body</span>.<span class="property">style</span>.<span class="property">cssText</span> = <span class="string">&#x27;width: 100%;overflow: hidden&#x27;</span></span><br><span class="line">  <span class="variable language_">document</span>.<span class="title function_">querySelector</span>(<span class="string">&#x27;#local-search .search-dialog&#x27;</span>).<span class="property">style</span>.<span class="property">display</span> = <span class="string">&#x27;block&#x27;</span></span><br><span class="line">  <span class="variable language_">document</span>.<span class="title function_">querySelector</span>(<span class="string">&#x27;#local-search-input input&#x27;</span>).<span class="title function_">focus</span>()</span><br><span class="line">  btf.<span class="title function_">fadeIn</span>(<span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">&#x27;search-mask&#x27;</span>), <span class="number">0.5</span>)</span><br><span class="line">  <span class="keyword">if</span> (!loadFlag) &#123;</span><br><span class="line">    <span class="title function_">search</span>(<span class="variable constant_">GLOBAL_CONFIG</span>.<span class="property">localSearch</span>.<span class="property">path</span>)</span><br><span class="line">    loadFlag = <span class="literal">true</span></span><br><span class="line">  &#125;</span><br><span class="line">  <span class="comment">// shortcut: ESC</span></span><br><span class="line">  <span class="variable language_">document</span>.<span class="title function_">addEventListener</span>(<span class="string">&#x27;keydown&#x27;</span>, <span class="keyword">function</span> <span class="title function_">f</span> (event) &#123;</span><br><span class="line">    <span class="keyword">if</span> (event.<span class="property">code</span> === <span class="string">&#x27;Escape&#x27;</span>) &#123;</span><br><span class="line">      <span class="title function_">closeSearch</span>()</span><br><span class="line">      <span class="variable language_">document</span>.<span class="title function_">removeEventListener</span>(<span class="string">&#x27;keydown&#x27;</span>, f)</span><br><span class="line">    &#125;</span><br><span class="line">  &#125;)</span><br><span class="line">&#125;</span><br><span class="line"><span class="comment">//在线聊天按钮动作</span></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">openTidio</span>(<span class="params"></span>) &#123;</span><br><span class="line"><span class="variable language_">window</span>.<span class="property">tidioChatApi</span>.<span class="title function_">show</span>();<span class="variable language_">window</span>.<span class="property">tidioChatApi</span>.<span class="title function_">open</span>();</span><br><span class="line">&#125;</span><br><span class="line"><span class="comment">//镜像站跳转动作</span></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">Mirror</span>(<span class="params"></span>) &#123;</span><br><span class="line">  <span class="keyword">let</span> pathname;</span><br><span class="line">  <span class="keyword">let</span> hostname;</span><br><span class="line">  <span class="keyword">let</span> url;</span><br><span class="line">  pathname = <span class="variable language_">window</span>.<span class="property">location</span>.<span class="property">pathname</span>;</span><br><span class="line">  hostname = <span class="variable language_">window</span>.<span class="property">location</span>.<span class="property">hostname</span>;</span><br><span class="line">  <span class="keyword">if</span> (hostname === <span class="string">&#x27;akilar.top&#x27;</span>) &#123;</span><br><span class="line">    url = <span class="string">&quot;https://akilar.gitee.io&quot;</span> + pathname;</span><br><span class="line">    <span class="variable language_">window</span>.<span class="title function_">alert</span>(<span class="string">&quot;即将前往糖果屋分店🍬&quot;</span>);</span><br><span class="line">    <span class="variable language_">window</span>.<span class="property">location</span>.<span class="property">href</span> = url;</span><br><span class="line">  &#125;</span><br><span class="line">  <span class="keyword">else</span> <span class="keyword">if</span>(hostname === <span class="string">&#x27;akilar.gitee.io&#x27;</span>) &#123;</span><br><span class="line">    url = <span class="string">&quot;https://akilar.top&quot;</span> + pathname;</span><br><span class="line">    <span class="variable language_">window</span>.<span class="title function_">alert</span>(<span class="string">&quot;正在返回糖果屋本部🍭！&quot;</span>);</span><br><span class="line">    <span class="variable language_">window</span>.<span class="property">location</span>.<span class="property">href</span> = url;</span><br><span class="line">  &#125;</span><br><span class="line">  <span class="keyword">else</span> &#123;</span><br><span class="line">    <span class="variable language_">window</span>.<span class="title function_">alert</span>(<span class="string">&quot;Master，本地调试不需要跳转哦！🍫&quot;</span>);</span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br><span class="line"><span class="comment">//评论窗口跳转</span></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">ToComment</span>(<span class="params"></span>)&#123;</span><br><span class="line">  <span class="keyword">var</span> hasComment = <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">&#x27;post-comment&#x27;</span>);</span><br><span class="line">  <span class="keyword">if</span> (hasComment)&#123;</span><br><span class="line">    <span class="variable language_">window</span>.<span class="property">location</span>.<span class="property">href</span> = <span class="string">&#x27;#post-comment&#x27;</span>; <span class="comment">//如果有评论区就跳转到评论区</span></span><br><span class="line">  &#125;</span><br><span class="line">  <span class="keyword">else</span>&#123;</span><br><span class="line">    <span class="title function_">linkStart</span>(<span class="string">&#x27;/comments/&#x27;</span>);<span class="comment">//如果没有，就跳转到留言板</span></span><br><span class="line">  &#125;;</span><br><span class="line">&#125;</span><br><span class="line"><span class="comment">//评论窗口跳转</span></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">ToComment</span>(<span class="params"></span>)&#123;</span><br><span class="line">  <span class="keyword">var</span> hasComment = <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">&#x27;post-comment&#x27;</span>);</span><br><span class="line">  <span class="keyword">if</span> (hasComment)&#123;</span><br><span class="line">    <span class="variable language_">window</span>.<span class="property">location</span>.<span class="property">href</span> = <span class="string">&#x27;#post-comment&#x27;</span>; <span class="comment">//如果有评论区就跳转到评论区</span></span><br><span class="line">  &#125;</span><br><span class="line">  <span class="keyword">else</span>&#123;</span><br><span class="line">    <span class="title function_">linkStart</span>(<span class="string">&#x27;/comments/&#x27;</span>);<span class="comment">//如果没有，就跳转到留言板</span></span><br><span class="line">  &#125;;</span><br><span class="line">&#125;</span><br><span class="line"><span class="comment">//固化关闭右键菜单效果</span></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">SAOKeepOff</span>(<span class="params"></span>)&#123;</span><br><span class="line">  <span class="variable language_">localStorage</span>.<span class="title function_">setItem</span>(<span class="string">&quot;SAOSwitch&quot;</span>, <span class="string">&quot;turnOff&quot;</span>);<span class="comment">//将关闭状态激活</span></span><br><span class="line">  <span class="title class_">SAOclose</span>();</span><br><span class="line">&#125;</span><br><span class="line"><span class="comment">//控制开关右键菜单效果</span></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">SAOSwitch</span>(<span class="params"></span>)&#123;</span><br><span class="line">  <span class="keyword">var</span> <span class="title class_">SAOSwitch</span> = <span class="variable language_">localStorage</span>.<span class="title function_">getItem</span>(<span class="string">&quot;SAOSwitch&quot;</span>);</span><br><span class="line">  <span class="comment">// 若键值存在且为turnoff，则转为turn；同时打开右键菜单</span></span><br><span class="line">  <span class="keyword">if</span> (<span class="title class_">SAOSwitch</span> === <span class="string">&quot;turnOff&quot;</span>)&#123;</span><br><span class="line">    <span class="variable language_">localStorage</span>.<span class="title function_">setItem</span>(<span class="string">&quot;SAOSwitch&quot;</span>, <span class="string">&quot;turnOn&quot;</span>);</span><br><span class="line">    <span class="title function_">popMenu</span>(event); <span class="comment">// 打开右键菜单</span></span><br><span class="line">  &#125;<span class="keyword">else</span> &#123; <span class="comment">//否则，持续关闭右键菜单</span></span><br><span class="line">    <span class="title class_">SAOKeepOff</span>()</span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></li><li>修改<code>[Blogroot]\themes\butterfly\layout\includes\rightside.pug</code>,加入恢复按钮<figure class="highlight diff"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line">  #rightside-config-show</span><br><span class="line">    if is_post()</span><br><span class="line">      if (theme.readmode || theme.translate.enable || (theme.darkmode.enable &amp;&amp; theme.darkmode.button) || theme.change_font_size)</span><br><span class="line">        button#rightside_config(type=&quot;button&quot; title=_p(&quot;rightside.setting&quot;))</span><br><span class="line">          i.fas.fa-cog.fa-spin</span><br><span class="line">      if showToc</span><br><span class="line">        button#mobile-toc-button.close(type=&quot;button&quot; title=_p(&quot;rightside.toc&quot;))</span><br><span class="line">          i.fas.fa-list-ul</span><br><span class="line">    else if theme.translate.enable || (theme.darkmode.enable &amp;&amp; theme.darkmode.button) || theme.change_font_size</span><br><span class="line">      button#rightside_config(type=&quot;button&quot; title=_p(&quot;rightside.setting&quot;))</span><br><span class="line">        i.fas.fa-cog.fa-spin</span><br><span class="line"><span class="addition">+   if theme.SAO_Utils.enable</span></span><br><span class="line"><span class="addition">+     button#ranklist_show(type=&quot;button&quot; title=_p(&quot;rightside.SAOSwitch&quot;) onclick=&quot;panelAudio();SAOSwitch()&quot;)</span></span><br><span class="line"><span class="addition">+       i.fas.fa-mouse</span></span><br><span class="line">    if theme.chat_btn</span><br><span class="line">      button#chat_btn(type=&quot;button&quot; title=_p(&quot;rightside.chat_btn&quot;))</span><br><span class="line">        i.fas.fa-sms</span><br></pre></td></tr></table></figure></li><li>修改<code>[Blogroot]\_config.butterfly.yml</code>,添加CDN配置项和菜单选项：<ul><li>CDN配置项：<figure class="highlight diff"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">  CDN:</span><br><span class="line">    # main</span><br><span class="line">    main_css: /css/index.css</span><br><span class="line">    jquery: https://npm.elemecdn.com/jquery@latest/dist/jquery.min.js</span><br><span class="line">    main: /js/main.js</span><br><span class="line">    utils: /js/utils.js</span><br><span class="line"><span class="addition">+   # SAO_Utils</span></span><br><span class="line"><span class="addition">+   SAO_Utils: /js/SAO_Menu.js</span></span><br></pre></td></tr></table></figure></li><li>SAO_Utils菜单配置项示例：<div class="tabs" id="配置项"><ul class="nav-tabs"><li class="tab active"><button type="button" data-href="#配置项-1">标准结构</button></li><li class="tab"><button type="button" data-href="#配置项-2">本站配置（仅供参考）</button></li></ul><div class="tab-contents"><div class="tab-item-content active" id="配置项-1"><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># SAO_Utils右键菜单</span></span><br><span class="line"><span class="attr">SAO_Utils:</span></span><br><span class="line"><span class="comment"># 基础选项</span></span><br><span class="line">  <span class="attr">enable:</span> <span class="literal">true</span> <span class="comment"># 总开关</span></span><br><span class="line">  <span class="attr">ThreeD:</span> <span class="literal">true</span> <span class="comment"># 3D效果</span></span><br><span class="line">  <span class="attr">Instructions:</span> <span class="literal">true</span> <span class="comment"># 说明书</span></span><br><span class="line">  <span class="attr">hoverShow:</span> <span class="literal">true</span> <span class="comment"># 悬停显示属性面板</span></span><br><span class="line">  <span class="attr">music:</span></span><br><span class="line">    <span class="attr">enable:</span> <span class="literal">true</span> <span class="comment"># 点击音效开关</span></span><br><span class="line">    <span class="attr">Launcher:</span> <span class="string">/assets/Launcher.wav</span> <span class="comment">#启动音效，留空则使用默认项</span></span><br><span class="line">    <span class="attr">Click:</span> <span class="string">/assets/Click.wav</span> <span class="comment"># 点击音效，留空则使用默认项</span></span><br><span class="line"><span class="comment"># 菜单显示</span></span><br><span class="line"><span class="comment"># 一级菜单</span></span><br><span class="line">  <span class="attr">util_list:</span></span><br><span class="line">    <span class="comment"># 配置图标选项、属性面板和二级菜单</span></span><br><span class="line">    <span class="bullet">-</span> <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-question-circle</span></span><br><span class="line">      <span class="attr">panel:</span> <span class="comment"># 选填，左侧属性面板</span></span><br><span class="line">        <span class="attr">title:</span> <span class="string">Help</span> <span class="comment"># 选填，面板标题</span></span><br><span class="line">        <span class="attr">img:</span> <span class="string">/img/info.png</span> <span class="comment"># 选填，面板图片，留空则使用默认项</span></span><br><span class="line">        <span class="attr">prop:</span> <span class="string">Anything</span> <span class="string">can</span> <span class="string">I</span> <span class="string">help</span> <span class="string">you</span> <span class="string">?</span> <span class="comment">#选填，面板内容，支持html语法</span></span><br><span class="line">        <span class="attr">top:</span> <span class="number">-170</span> <span class="comment"># 选填，面板偏移量，用来控制和一级菜单按钮的对齐，留空则使用默认项</span></span><br><span class="line">      <span class="attr">link:</span>  <span class="comment"># 链接，和action、menu_list互斥，只能填一个</span></span><br><span class="line">      <span class="attr">action:</span>  <span class="comment"># 自定义动作，和link、menu_list互斥，只能填一个</span></span><br><span class="line">      <span class="attr">menutop:</span> <span class="comment">#控制二级菜单的偏移量来调整和一级菜单的对齐，一般不用填。</span></span><br><span class="line">      <span class="attr">menu_list:</span> <span class="comment"># 二级菜单,和action、link互斥</span></span><br><span class="line">        <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Tidio</span> <span class="comment"># 名称</span></span><br><span class="line">          <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-comment-dots</span> <span class="comment"># 图标</span></span><br><span class="line">          <span class="attr">action:</span> <span class="string">openTidio()</span> <span class="comment"># 自定义动作</span></span><br><span class="line">        <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Candyhome</span></span><br><span class="line">          <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-user-friends</span></span><br><span class="line">          <span class="attr">link:</span> <span class="string">https://jq.qq.com/?_wv=1027&amp;k=a08BZRzs</span></span><br><span class="line">        <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Document</span></span><br><span class="line">          <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-folder-open</span></span><br><span class="line">          <span class="attr">childtop:</span> <span class="comment">#控制三级菜单的偏移量来调整和二级菜单的对齐，一般不用填。</span></span><br><span class="line">          <span class="attr">child_list:</span> <span class="comment"># 三级菜单</span></span><br><span class="line">            <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Beautify</span> <span class="comment"># 名称</span></span><br><span class="line">              <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-file-invoice</span> <span class="comment"># 图标</span></span><br><span class="line">              <span class="attr">link:</span> <span class="string">/posts/f99b208/</span> <span class="comment"># 链接</span></span><br></pre></td></tr></table></figure><button type="button" class="tab-to-top" aria-label="scroll to top"><i class="fas fa-arrow-up"></i></button></div><div class="tab-item-content" id="配置项-2"><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># SAO_Utils右键菜单</span></span><br><span class="line"><span class="attr">SAO_Utils:</span></span><br><span class="line">  <span class="attr">enable:</span> <span class="literal">true</span></span><br><span class="line">  <span class="attr">ThreeD:</span> <span class="literal">true</span></span><br><span class="line">  <span class="attr">Instructions:</span> <span class="literal">true</span></span><br><span class="line">  <span class="attr">hoverShow:</span> <span class="literal">true</span></span><br><span class="line">  <span class="attr">music:</span></span><br><span class="line">    <span class="attr">enable:</span> <span class="literal">true</span></span><br><span class="line">    <span class="attr">Launcher:</span> <span class="string">/assets/Launcher.wav</span></span><br><span class="line">    <span class="attr">Click:</span> <span class="string">/assets/Click.wav</span></span><br><span class="line">    <span class="attr">Alert:</span> <span class="string">/assets/Alert.wav</span></span><br><span class="line">    <span class="attr">Panel:</span> <span class="string">/assets/Panel.wav</span></span><br><span class="line">  <span class="attr">util_list:</span></span><br><span class="line">    <span class="bullet">-</span> <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-link</span></span><br><span class="line">      <span class="attr">link:</span> <span class="string">/link/</span></span><br><span class="line">      <span class="attr">panel:</span></span><br><span class="line">        <span class="attr">title:</span> <span class="string">Friends</span></span><br><span class="line">        <span class="attr">img:</span></span><br><span class="line">        <span class="attr">prop:</span> <span class="string">Welcome</span> <span class="string">to</span> <span class="string">Sword</span> <span class="string">Art</span> <span class="string">Online</span> <span class="string">!</span></span><br><span class="line">        <span class="attr">top:</span></span><br><span class="line">    <span class="bullet">-</span> <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-question-circle</span></span><br><span class="line">      <span class="attr">panel:</span></span><br><span class="line">        <span class="attr">title:</span> <span class="string">Help</span></span><br><span class="line">        <span class="attr">img:</span></span><br><span class="line">        <span class="attr">prop:</span> <span class="string">Anything</span> <span class="string">can</span> <span class="string">I</span> <span class="string">help</span> <span class="string">you</span> <span class="string">?</span></span><br><span class="line">        <span class="attr">top:</span></span><br><span class="line">      <span class="attr">menu_list:</span></span><br><span class="line">        <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Tidio</span></span><br><span class="line">          <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-comment-dots</span></span><br><span class="line">          <span class="attr">action:</span> <span class="string">openTidio()</span></span><br><span class="line">        <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Comments</span></span><br><span class="line">          <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-comments</span></span><br><span class="line">          <span class="attr">action:</span> <span class="string">ToComment()</span></span><br><span class="line">        <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Candyhome</span></span><br><span class="line">          <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-user-friends</span></span><br><span class="line">          <span class="attr">link:</span> <span class="string">https://jq.qq.com/?_wv=1027&amp;k=a08BZRzs</span></span><br><span class="line">    <span class="bullet">-</span> <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-tasks</span></span><br><span class="line">      <span class="attr">panel:</span></span><br><span class="line">        <span class="attr">title:</span> <span class="string">Menu</span></span><br><span class="line">        <span class="attr">img:</span></span><br><span class="line">        <span class="attr">prop:</span> <span class="string">The</span> <span class="string">menu</span> <span class="string">of</span> <span class="string">my</span> <span class="string">blog</span></span><br><span class="line">        <span class="attr">top:</span></span><br><span class="line">      <span class="attr">menu_list:</span></span><br><span class="line">        <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Home</span></span><br><span class="line">          <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-home</span></span><br><span class="line">          <span class="attr">link:</span> <span class="string">https://blog.akilar.top/</span></span><br><span class="line">        <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Document</span></span><br><span class="line">          <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-folder-open</span></span><br><span class="line">          <span class="attr">child_list:</span></span><br><span class="line">            <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Beautify</span></span><br><span class="line">              <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-file-invoice</span></span><br><span class="line">              <span class="attr">link:</span> <span class="string">/posts/f99b208/</span></span><br><span class="line">            <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Optimize</span></span><br><span class="line">              <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-file-invoice</span></span><br><span class="line">              <span class="attr">link:</span> <span class="string">/posts/7c16c4bb/</span></span><br><span class="line">            <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Tag_Plugins</span></span><br><span class="line">              <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-file-invoice</span></span><br><span class="line">              <span class="attr">link:</span> <span class="string">/posts/615e2dec/</span></span><br><span class="line">            <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Construct</span></span><br><span class="line">              <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-file-invoice</span></span><br><span class="line">              <span class="attr">link:</span> <span class="string">/posts/6ef63e2d/</span></span><br><span class="line">        <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Blog</span></span><br><span class="line">          <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-blog</span></span><br><span class="line">          <span class="attr">link:</span> <span class="string">/</span></span><br><span class="line">        <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Archives</span></span><br><span class="line">          <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-archive</span></span><br><span class="line">          <span class="attr">link:</span> <span class="string">/archives/</span></span><br><span class="line">        <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Categoties</span></span><br><span class="line">          <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-folder-open</span></span><br><span class="line">          <span class="attr">link:</span> <span class="string">/categories/</span></span><br><span class="line">        <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Tags</span></span><br><span class="line">          <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-tags</span></span><br><span class="line">          <span class="attr">link:</span> <span class="string">/tags/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-tools</span></span><br><span class="line">      <span class="attr">panel:</span></span><br><span class="line">        <span class="attr">title:</span> <span class="string">Options</span></span><br><span class="line">        <span class="attr">img:</span></span><br><span class="line">        <span class="attr">prop:</span> <span class="string">Some</span> <span class="string">userful</span> <span class="string">scripts</span></span><br><span class="line">        <span class="attr">top:</span></span><br><span class="line">      <span class="attr">menu_list:</span></span><br><span class="line">        <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Mirror</span></span><br><span class="line">          <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-indent</span></span><br><span class="line">          <span class="attr">action:</span> <span class="string">Mirror()</span></span><br><span class="line">        <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Random</span></span><br><span class="line">          <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-random</span></span><br><span class="line">          <span class="attr">link:</span> <span class="string">/random/</span></span><br><span class="line">        <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Search</span></span><br><span class="line">          <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-search</span></span><br><span class="line">          <span class="attr">action:</span> <span class="string">openSearch()</span></span><br></pre></td></tr></table></figure><button type="button" class="tab-to-top" aria-label="scroll to top"><i class="fas fa-arrow-up"></i></button></div></div></div></li></ul></li><li>因为这次的配置逻辑较为繁复，所以参数解释会比较多：</li></ol><div class="table-container"><table><thead><tr><th style="text-align:left">序号</th><th style="text-align:left">参数</th><th style="text-align:left">备选值</th><th style="text-align:left">参数释义</th></tr></thead><tbody><tr><td style="text-align:left">0</td><td style="text-align:left"><span class="p gray">enable</span></td><td style="text-align:left"><kbd>true</kbd> , <kbd>false</kbd></td><td style="text-align:left"><code>true</code>为开启右键菜单，<code>false</code>为关闭右键菜单</td></tr><tr><td style="text-align:left">1</td><td style="text-align:left"><span class="p gray">ThreeD</span></td><td style="text-align:left"><kbd>true</kbd> , <kbd>false</kbd></td><td style="text-align:left"><code>true</code>为开启3D效果，<code>false</code>为关闭3D效果</td></tr><tr><td style="text-align:left">2</td><td style="text-align:left"><span class="p gray">Instructions</span></td><td style="text-align:left"><kbd>true</kbd> , <kbd>false</kbd></td><td style="text-align:left"><code>true</code>为开启说明书，<code>false</code>为关闭说明书。默认开启。内附本帖链接，可能的话，希望可以开着帮我做下宣传</td></tr><tr><td style="text-align:left">3</td><td style="text-align:left"><span class="p gray">hoverShow</span></td><td style="text-align:left"><kbd>true</kbd> , <kbd>false</kbd></td><td style="text-align:left"><code>true</code>为开启悬停显示，<code>false</code>为关闭悬停显示。默认开启。控制属性栏和三级菜单的悬停显隐。</td></tr><tr><td style="text-align:left">4.1</td><td style="text-align:left"><span class="p gray">music.enable</span></td><td style="text-align:left"><kbd>true</kbd> , <kbd>false</kbd></td><td style="text-align:left"><code>true</code>为开启点击音效，<code>false</code>为关闭点击音效</td></tr><tr><td style="text-align:left">4.2</td><td style="text-align:left"><span class="p gray">music.Launcher</span></td><td style="text-align:left"><kbd>Url</kbd>,音乐文件的相对路径或外链</td><td style="text-align:left">右键点击打开菜单时的音效，留空则使用默认音效</td></tr><tr><td style="text-align:left">4.3</td><td style="text-align:left"><span class="p gray">music.Click</span></td><td style="text-align:left"><kbd>Url</kbd>,音乐文件的相对路径或外链</td><td style="text-align:left">左键点击菜单选项时的音效，留空则使用默认音效</td></tr><tr><td style="text-align:left">4.4</td><td style="text-align:left"><span class="p gray">music.Alert</span></td><td style="text-align:left"><kbd>Url</kbd>,音乐文件的相对路径或外链</td><td style="text-align:left">右键点击退出按钮时的音效，留空则使用默认音效</td></tr><tr><td style="text-align:left">4.5</td><td style="text-align:left"><span class="p gray">music.Panel</span></td><td style="text-align:left"><kbd>Url</kbd>,音乐文件的相对路径或外链</td><td style="text-align:left">左键点击含子菜单的选项时的音效，留空则使用默认音效</td></tr><tr><td style="text-align:left">5</td><td style="text-align:left"><span class="p red">util_list</span></td><td style="text-align:left">见下文</td><td style="text-align:left">一级菜单选项</td></tr><tr><td style="text-align:left">5.1</td><td style="text-align:left"><span class="p red">util_list.icon</span></td><td style="text-align:left"><code>eg:fa fa-link</code></td><td style="text-align:left">菜单选项图标，使用<a target="_blank" rel="noopener external nofollow noreferrer" href="https://fontawesome.com/icons?d=gallery">fontawesome</a>，也可以使用<a href="/posts/d2ebecef/">iconfont</a></td></tr><tr><td style="text-align:left">5.2</td><td style="text-align:left"><span class="p red">util_list.panel</span></td><td style="text-align:left">见下文</td><td style="text-align:left">角色属性面板</td></tr><tr><td style="text-align:left">5.2.1</td><td style="text-align:left"><span class="p cyan">util_list.panel.title</span></td><td style="text-align:left"><kbd>Text</kbd></td><td style="text-align:left">面板标题</td></tr><tr><td style="text-align:left">5.2.2</td><td style="text-align:left"><span class="p cyan">util_list.panel.img</span></td><td style="text-align:left"><kbd>Url</kbd>,图片相对链接或图床绝对链接</td><td style="text-align:left">面板图片，默认使用角色属性面板图</td></tr><tr><td style="text-align:left">5.2.3</td><td style="text-align:left"><span class="p cyan">util_list.panel.prop</span></td><td style="text-align:left"><kbd>Html</kbd></td><td style="text-align:left">面板内容，支持Html语法</td></tr><tr><td style="text-align:left">5.2.4</td><td style="text-align:left"><span class="p cyan">util_list.panel.top</span></td><td style="text-align:left"><kbd>Number</kbd> <code>eg:-150</code></td><td style="text-align:left">属性面板偏移量，确保面板右侧箭头对着相应的一级菜单，填写数字即可，不需要加单位</td></tr><tr><td style="text-align:left">5.3</td><td style="text-align:left"><span class="p red">util_list.link</span></td><td style="text-align:left"><kbd>Url</kbd></td><td style="text-align:left">链接，站内建议使用相对路径，站外需要使用带协议的绝对路径,与<code>action</code>、<code>menu_list</code>互斥，<strong>只能填写一个</strong></td></tr><tr><td style="text-align:left">5.4</td><td style="text-align:left"><span class="p red">util_list.action</span></td><td style="text-align:left"><kbd>Function</kbd></td><td style="text-align:left">点击动作，详见本帖拓展内容，与<code>link</code>、<code>menu_list</code>互斥，<strong>只能填写一个</strong></td></tr><tr><td style="text-align:left">5.5</td><td style="text-align:left"><span class="p red">util_list.menutop</span></td><td style="text-align:left"><kbd>Number</kbd> <code>eg:-150</code></td><td style="text-align:left">二级菜单面板偏移量，确保面板右侧箭头对着相应的一级菜单，填写数字即可，不需要加单位<emp>可选，当前偏移量是根据公式计算的，一般都会对齐</emp></td></tr><tr><td style="text-align:left">5.6</td><td style="text-align:left"><span class="p blue">util_list.menu_list</span></td><td style="text-align:left">见下文</td><td style="text-align:left"><wavy>仅一级菜单支持该配置项</wavy></td></tr><tr><td style="text-align:left">5.6.1</td><td style="text-align:left"><span class="p blue">menu_list.name</span></td><td style="text-align:left"><kbd>Text</kbd></td><td style="text-align:left">菜单选项标题</td></tr><tr><td style="text-align:left">5.6.2</td><td style="text-align:left"><span class="p blue">menu_list.icon</span></td><td style="text-align:left"><code>eg:fa fa-link</code></td><td style="text-align:left">菜单选项图标，使用<a target="_blank" rel="noopener external nofollow noreferrer" href="https://fontawesome.com/icons?d=gallery">fontawesome</a>，也可以使用<a href="/posts/d2ebecef/">iconfont</a></td></tr><tr><td style="text-align:left">5.6.3</td><td style="text-align:left"><span class="p blue">menu_list.link</span></td><td style="text-align:left"><kbd>Url</kbd></td><td style="text-align:left">链接，站内建议使用相对路径，站外需要使用带协议的绝对路径,与<code>action</code>、<code>child_list</code>互斥，<strong>只能填写一个</strong></td></tr><tr><td style="text-align:left">5.6.4</td><td style="text-align:left"><span class="p blue">menu_list.action</span></td><td style="text-align:left"><kbd>Function</kbd></td><td style="text-align:left">点击动作，详见本帖拓展内容，与<code>link</code>、<code>child_list</code>互斥，<strong>只能填写一个</strong></td></tr><tr><td style="text-align:left">5.6.5</td><td style="text-align:left"><span class="p blue">menu_list.childtop</span></td><td style="text-align:left"><kbd>Number</kbd> <code>eg:-150</code></td><td style="text-align:left">二级菜单面板偏移量，确保面板右侧箭头对着相应的一级菜单，填写数字即可，不需要加单位。<emp>可选，当前偏移量是根据公式计算的，一般都会对齐</emp></td></tr><tr><td style="text-align:left">5.6.6</td><td style="text-align:left"><span class="p green">menu_list.child_list</span></td><td style="text-align:left">类似于<code>menu_list</code></td><td style="text-align:left"><wavy>仅二级菜单支持该配置项</wavy>，其余下辖配置项与<code>menu_list</code>相同</td></tr><tr><td style="text-align:left">5.6.6.1</td><td style="text-align:left"><span class="p green">child_list.name</span></td><td style="text-align:left"><kbd>Text</kbd></td><td style="text-align:left">菜单选项标题</td></tr><tr><td style="text-align:left">5.6.6.2</td><td style="text-align:left"><span class="p green">child_list.icon</span></td><td style="text-align:left"><code>eg:fa fa-link</code></td><td style="text-align:left">菜单选项图标，使用<a target="_blank" rel="noopener external nofollow noreferrer" href="https://fontawesome.com/icons?d=gallery">fontawesome</a>，也可以使用<a href="/posts/d2ebecef/">iconfont</a></td></tr><tr><td style="text-align:left">5.6.6.3</td><td style="text-align:left"><span class="p green">child_list.link</span></td><td style="text-align:left"><kbd>Url</kbd></td><td style="text-align:left">链接，站内建议使用相对路径，站外需要使用带协议的绝对路径,与<code>action</code>互斥，<strong>只能填写一个</strong></td></tr><tr><td style="text-align:left">5.6.6.4</td><td style="text-align:left"><span class="p green">child_list.action</span></td><td style="text-align:left"><kbd>Function</kbd></td><td style="text-align:left">点击动作，详见本帖拓展内容，与<code>link</code>互斥，<strong>只能填写一个</strong></td></tr></tbody></table></div></div></details><h2 id="自定义脚本拓展"><a href="#自定义脚本拓展" class="headerlink" title="自定义脚本拓展"></a>自定义脚本拓展</h2><details class="folding-tag" purple><summary>点击查看脚本拓展内容</summary><div class="content"><div class="note info morden flat"><p>糖果屋出品的右键菜单提供了自定义js配置，读者可以通过封装自己的js脚本，直接通过菜单选项调用。以下会分享几个简单示例。更多内容可以自行探索。希望可以启发读者，在评论区留下更多有趣的脚本。</p></div><p>使用方法:在上文的<code>menu_list</code>或者<code>child_list</code>配置项的<code>action</code>填写函数名即可正常调用。注意<code>action</code>和<code>link</code>互斥。所以写了<code>action</code>就不要写<code>link</code>了</p><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Mirror</span></span><br><span class="line">  <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-indent</span></span><br><span class="line">  <span class="attr">action:</span> <span class="string">Mirror()</span></span><br><span class="line"><span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Search</span></span><br><span class="line">  <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-search</span></span><br><span class="line">  <span class="attr">action:</span> <span class="string">openSearch()</span></span><br><span class="line"><span class="bullet">-</span> <span class="attr">name:</span> <span class="string">Tidio</span></span><br><span class="line">  <span class="attr">icon:</span> <span class="string">fa</span> <span class="string">fa-server</span></span><br><span class="line">  <span class="attr">action:</span> <span class="string">openTidio()</span></span><br></pre></td></tr></table></figure><div class="tabs" id="脚本分享"><ul class="nav-tabs"><li class="tab"><button type="button" data-href="#脚本分享-1">镜像站跳转</button></li><li class="tab"><button type="button" data-href="#脚本分享-2">打开local-search搜索按钮</button></li><li class="tab"><button type="button" data-href="#脚本分享-3">打开Algolia搜索按钮</button></li><li class="tab"><button type="button" data-href="#脚本分享-4">打开Tidio</button></li><li class="tab"><button type="button" data-href="#脚本分享-5">跳转评论区</button></li><li class="tab"><button type="button" data-href="#脚本分享-6">关闭当前窗口</button></li></ul><div class="tab-contents"><div class="tab-item-content" id="脚本分享-1"><p></p><div class="note info morden flat"><p>功能：针对gitee镜像站和当前站点的同篇文章跳转，记得更改链接。</p></div><br><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">function</span> <span class="title function_">Mirror</span>(<span class="params"></span>) &#123;</span><br><span class="line">  <span class="keyword">let</span> pathname;</span><br><span class="line">  <span class="keyword">let</span> hostname;</span><br><span class="line">  <span class="keyword">let</span> url;</span><br><span class="line">  pathname = <span class="variable language_">window</span>.<span class="property">location</span>.<span class="property">pathname</span>;</span><br><span class="line">  hostname = <span class="variable language_">window</span>.<span class="property">location</span>.<span class="property">hostname</span>;</span><br><span class="line">  <span class="keyword">if</span> (hostname === <span class="string">&#x27;akilar.top&#x27;</span>) &#123;</span><br><span class="line">    url = <span class="string">&quot;https://akilar.gitee.io&quot;</span> + pathname;</span><br><span class="line">    <span class="variable language_">window</span>.<span class="title function_">alert</span>(<span class="string">&quot;即将前往糖果屋分店🍬&quot;</span>);</span><br><span class="line">    <span class="variable language_">window</span>.<span class="property">location</span>.<span class="property">href</span> = url;</span><br><span class="line">  &#125;</span><br><span class="line">  <span class="keyword">else</span> <span class="keyword">if</span>(hostname === <span class="string">&#x27;akilar.gitee.io&#x27;</span>) &#123;</span><br><span class="line">    url = <span class="string">&quot;https://akilar.top&quot;</span> + pathname;</span><br><span class="line">    <span class="variable language_">window</span>.<span class="title function_">alert</span>(<span class="string">&quot;正在返回糖果屋本部🍭！&quot;</span>);</span><br><span class="line">    <span class="variable language_">window</span>.<span class="property">location</span>.<span class="property">href</span> = url;</span><br><span class="line">  &#125;</span><br><span class="line">  <span class="keyword">else</span> &#123;</span><br><span class="line">    <span class="variable language_">window</span>.<span class="title function_">alert</span>(<span class="string">&quot;Master，本地调试不需要跳转哦！🍫&quot;</span>);</span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure><p></p><button type="button" class="tab-to-top" aria-label="scroll to top"><i class="fas fa-arrow-up"></i></button></div><div class="tab-item-content" id="脚本分享-2"><p></p><div class="note warning morden flat"><p>功能：打开<code>local-search</code>搜索按钮（提取自Butterfly源码，其他主题可能不生效）。</p></div><br><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">function</span> <span class="title function_">openSearch</span>(<span class="params"></span>) &#123;</span><br><span class="line">  <span class="variable language_">document</span>.<span class="property">body</span>.<span class="property">style</span>.<span class="property">cssText</span> = <span class="string">&#x27;width: 100%;overflow: hidden&#x27;</span></span><br><span class="line">  <span class="variable language_">document</span>.<span class="title function_">querySelector</span>(<span class="string">&#x27;#local-search .search-dialog&#x27;</span>).<span class="property">style</span>.<span class="property">display</span> = <span class="string">&#x27;block&#x27;</span></span><br><span class="line">  <span class="variable language_">document</span>.<span class="title function_">querySelector</span>(<span class="string">&#x27;#local-search-input input&#x27;</span>).<span class="title function_">focus</span>()</span><br><span class="line">  btf.<span class="title function_">fadeIn</span>(<span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">&#x27;search-mask&#x27;</span>), <span class="number">0.5</span>)</span><br><span class="line">  <span class="keyword">if</span> (!loadFlag) &#123;</span><br><span class="line">    <span class="title function_">search</span>(<span class="variable constant_">GLOBAL_CONFIG</span>.<span class="property">localSearch</span>.<span class="property">path</span>)</span><br><span class="line">    loadFlag = <span class="literal">true</span></span><br><span class="line">  &#125;</span><br><span class="line">  <span class="comment">// shortcut: ESC</span></span><br><span class="line">  <span class="variable language_">document</span>.<span class="title function_">addEventListener</span>(<span class="string">&#x27;keydown&#x27;</span>, <span class="keyword">function</span> <span class="title function_">f</span> (event) &#123;</span><br><span class="line">    <span class="keyword">if</span> (event.<span class="property">code</span> === <span class="string">&#x27;Escape&#x27;</span>) &#123;</span><br><span class="line">      <span class="title function_">closeSearch</span>()</span><br><span class="line">      <span class="variable language_">document</span>.<span class="title function_">removeEventListener</span>(<span class="string">&#x27;keydown&#x27;</span>, f)</span><br><span class="line">    &#125;</span><br><span class="line">  &#125;)</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure><p></p><button type="button" class="tab-to-top" aria-label="scroll to top"><i class="fas fa-arrow-up"></i></button></div><div class="tab-item-content" id="脚本分享-3"><p></p><div class="note warning morden flat"><p>功能：打开<code>algolia</code>搜索按钮（提取自Butterfly源码，其他主题可能不生效）。</p></div><br><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">function</span> <span class="title function_">openAlgolia</span>(<span class="params"></span>) &#123;</span><br><span class="line">  <span class="variable language_">document</span>.<span class="property">body</span>.<span class="property">style</span>.<span class="property">cssText</span> = <span class="string">&#x27;width: 100%;overflow: hidden&#x27;</span></span><br><span class="line">  <span class="variable language_">document</span>.<span class="title function_">querySelector</span>(<span class="string">&#x27;#algolia-search .search-dialog&#x27;</span>).<span class="property">style</span>.<span class="property">display</span> = <span class="string">&#x27;block&#x27;</span></span><br><span class="line">  <span class="variable language_">document</span>.<span class="title function_">querySelector</span>(<span class="string">&#x27;#algolia-search .ais-search-box--input&#x27;</span>).<span class="title function_">focus</span>()</span><br><span class="line">  btf.<span class="title function_">fadeIn</span>(<span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">&#x27;search-mask&#x27;</span>), <span class="number">0.5</span>)</span><br><span class="line">  <span class="comment">// shortcut: ESC</span></span><br><span class="line">  <span class="variable language_">document</span>.<span class="title function_">addEventListener</span>(<span class="string">&#x27;keydown&#x27;</span>, <span class="keyword">function</span> <span class="title function_">f</span> (event) &#123;</span><br><span class="line">    <span class="keyword">if</span> (event.<span class="property">code</span> === <span class="string">&#x27;Escape&#x27;</span>) &#123;</span><br><span class="line">      <span class="title function_">closeSearch</span>()</span><br><span class="line">      <span class="variable language_">document</span>.<span class="title function_">removeEventListener</span>(<span class="string">&#x27;keydown&#x27;</span>, f)</span><br><span class="line">    &#125;</span><br><span class="line">  &#125;)</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure><p></p><button type="button" class="tab-to-top" aria-label="scroll to top"><i class="fas fa-arrow-up"></i></button></div><div class="tab-item-content" id="脚本分享-4"><p></p><div class="note warning morden flat"><p>功能：打开Tidio在线聊天界面（提取自Butterfly源码，其他主题可能不生效）</p></div><br><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">function</span> <span class="title function_">openTidio</span>(<span class="params"></span>) &#123;</span><br><span class="line"><span class="variable language_">window</span>.<span class="property">tidioChatApi</span>.<span class="title function_">show</span>();<span class="variable language_">window</span>.<span class="property">tidioChatApi</span>.<span class="title function_">open</span>();</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure><p></p><button type="button" class="tab-to-top" aria-label="scroll to top"><i class="fas fa-arrow-up"></i></button></div><div class="tab-item-content" id="脚本分享-5"><p></p><div class="note warning morden flat"><p>功能：若当前页面有评论区，则跳转评论区，若没有，则跳转到留言板页面，评论区的挂载ID和留言板路径可能不一致，请自己根据实际情况替换。</p></div><br><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">function</span> <span class="title function_">ToComment</span>(<span class="params"></span>)&#123;</span><br><span class="line">  <span class="keyword">var</span> hasComment = <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">&#x27;post-comment&#x27;</span>);</span><br><span class="line">  <span class="keyword">if</span> (hasComment)&#123;</span><br><span class="line">    <span class="variable language_">window</span>.<span class="property">location</span>.<span class="property">href</span> = <span class="string">&#x27;#post-comment&#x27;</span>; <span class="comment">//如果有评论区就跳转到评论区</span></span><br><span class="line">  &#125;</span><br><span class="line">  <span class="keyword">else</span>&#123;</span><br><span class="line">    <span class="title function_">linkStart</span>(<span class="string">&#x27;/comments/&#x27;</span>);<span class="comment">//如果没有，就跳转到留言板</span></span><br><span class="line">    <span class="comment">//linkStart是本帖的SAO_Menu.js中带的跳转函数，用于pjax适配</span></span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure><p></p><button type="button" class="tab-to-top" aria-label="scroll to top"><i class="fas fa-arrow-up"></i></button></div><div class="tab-item-content" id="脚本分享-6"><p></p><div class="note warning morden flat"><p>功能：关闭当前页面。既然是<code>SAO</code>，怎么可以不致敬一下登出键呢？(对无痕窗口不生效，会提示<code>scripts may close only the windows that were opened by them</code>)</p></div><br><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">//关闭当前页面</span></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">Logout</span>(<span class="params"></span>)&#123;</span><br><span class="line">  <span class="variable language_">window</span>.<span class="property">opener</span>=<span class="literal">null</span>;</span><br><span class="line">  <span class="variable language_">window</span>.<span class="title function_">open</span>(<span class="string">&#x27;&#x27;</span>,<span class="string">&#x27;_self&#x27;</span>);</span><br><span class="line">  <span class="variable language_">window</span>.<span class="title function_">close</span>();</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure><p></p><button type="button" class="tab-to-top" aria-label="scroll to top"><i class="fas fa-arrow-up"></i></button></div></div></div></div></details><h2 id="TO-DO"><a href="#TO-DO" class="headerlink" title="TO DO"></a>TO DO</h2><div class="checkbox blue checked"><input type="checkbox" checked><p>SAO风格的右键菜单</p></div><div class="checkbox blue checked"><input type="checkbox" checked><p>二级菜单显隐逻辑适配</p></div><div class="checkbox blue checked"><input type="checkbox" checked><p>Ctrl+右键恢复原生菜单</p></div><div class="checkbox blue checked"><input type="checkbox" checked><p>适配pjax，站内跳转不打断全局音乐</p></div><div class="checkbox blue checked"><input type="checkbox" checked><p>补全左侧圆形列表</p></div><div class="checkbox blue checked"><input type="checkbox" checked><p>补全左侧角色属性栏样式</p></div><div class="checkbox blue checked"><input type="checkbox" checked><p>3D显示效果</p></div><div class="checkbox blue checked"><input type="checkbox" checked><p>添加浮动动态动画</p></div><h2 id="后日谈"><a href="#后日谈" class="headerlink" title="后日谈"></a>后日谈</h2><p>SAO右键风格菜单以后，我有收到过赞美，也收到过抱怨。<br>毕竟，替换了原生右键菜单以后，会有很多不便。比如不能直接复制粘贴代码。不能使用右键原生菜单的诸多功能，连带着把浏览器插件的附加功能也屏蔽了。<br>所以我加上了ctrl+右键时打开原生菜单，让读者可以自主选择是否启用右键菜单。但是还是有人不满。还是有人会抱怨。<br>我其实最想要的，就是有个人在我实现这个功能的时候，在我旁边说上一句，这个功能好酷！<br>但是很少。只有屈指可数的魔改同好或者刀剑神域粉会在访问博客时赞叹一句。所以每当有人夸上一句，我都能乐上好半天。那种感觉比喝了蜜还甜。<br>我也收到过类似于“多余的功能””根本没人会用”“很搞心态”的评价。<br>其实他们的评价于我来说无关痛痒，作为个人博客，我甚至完全没有必要去理会。<br>制作一个SAO风格的右键菜单是我的夙愿，即使它的小众性质注定了它无法被任何人接受。可我也不想我费尽心思完成的作品被无端的谩骂。<br>今天，我心不甘情不愿的加上了永久固化关闭右键菜单功能。依旧交出了选择的权利。改动很简单。不超过20行代码。对我来说称得上举手之劳。<br>我已经妥协了太多次了。因为一个众口难调，我不停的改动功能，不停地加上二联判断，不停地添加开关配置项，尽可能得让每一篇教程里的每一种方案都给予使用者充分的选择权利。<br>我已经厌倦了不断的妥协了。</p></article><div class="post-copyright"><div class="post-copyright__title"><span class="post-copyright-info"><h>SAO UI Plan -- SAO Utils WEB 2.0</h></span></div><div class="post-copyright__type"><span class="post-copyright-info"><a href="https://akilar.top/posts/fd243d7/">https://akilar.top/posts/fd243d7/</a></span></div><div class="post-copyright-m"><div class="post-copyright-m-info"><div class="post-copyright-a"><h>作者</h><div class="post-copyright-cc-info"><h>Akilar</h></div></div><div class="post-copyright-c"><h>发布于</h><div class="post-copyright-cc-info"><h>2021-01-29</h></div></div><div class="post-copyright-u"><h>更新于</h><div class="post-copyright-cc-info"><h>2021-12-19</h></div></div><div class="post-copyright-c"><h>许可协议</h><div class="post-copyright-cc-info"><a class="icon" rel="noopener external nofollow noreferrer" target="_blank" title="Creative Commons" href="https://creativecommons.org/"><i class="fab fa-creative-commons"></i></a><a rel="noopener external nofollow noreferrer" target="_blank" title="CC BY-NC-SA 4.0" href="https://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0</a></div></div></div></div></div><div class="tag_share"><div class="post-meta__tag-list"><a class="post-meta__tags" href="/tags/%F0%9F%93%81Hexo/">📁Hexo</a><a class="post-meta__tags" href="/tags/%F0%9F%A6%8BButterfly/">🦋Butterfly</a><a class="post-meta__tags" href="/tags/%E2%9A%94%EF%B8%8FSAO-UI-Plan/">⚔️SAO UI Plan</a></div><div class="post_share"></div></div><link rel="stylesheet" href="https://npm.elemecdn.com/akiblog@1.0.1/css/coin.css" media="defer" onload='this.media="all"'><div class="post-reward"><button class="tip-button reward-button"><span class="tip-button__text">不给糖果就捣蛋</span><div class="coin-wrapper"><div class="coin"><div class="coin__middle"></div><div class="coin__back"></div><div class="coin__front"></div></div></div><div class="reward-main"><ul class="reward-all"><li class="reward-item"><a href="https://npm.elemecdn.com/akiblog@1.0.1/img/wechat.png" rel="external nofollow noreferrer" target="_blank"><img class="post-qr-code-img" src="" data-lazy-src="https://npm.elemecdn.com/akiblog@1.0.1/img/wechat.png" alt="wechat"></a><div class="post-qr-code-desc">wechat</div></li><li class="reward-item"><a href="https://npm.elemecdn.com/akiblog@1.0.1/img/alipay.png" rel="external nofollow noreferrer" target="_blank"><img class="post-qr-code-img" src="" data-lazy-src="https://npm.elemecdn.com/akiblog@1.0.1/img/alipay.png" alt="alipay"></a><div class="post-qr-code-desc">alipay</div></li></ul></div></button></div><audio id="coinAudio" src="https://npm.elemecdn.com/akilar-candyassets/audio/aowu.m4a"></audio><script defer src="https://npm.elemecdn.com/akiblog@1.0.1/js/custom/coin.js"></script><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="javascript:void(0);" rel="external nofollow noreferrer" onclick="SAONotify(&quot;Prev Post&quot;,&quot;是否跳转至上一篇：&lt;br&gt;SAO UI Plan -- SAO Utils Web 1.0&quot;,&quot;pjax.loadUrl('/posts/3b4c07bd/')&quot;)" title="SAO UI Plan -- SAO Utils Web 1.0"><i class="fas fa-chevron-left prev-icon"><div class="prev-label">上一篇</div></i></a><div class="pagination-card"><img class="prev-cover" src="" data-lazy-src="https://npm.elemecdn.com/akilar-candyassets/image/SAO-Utils-53b2c0a5.png" onerror='onerror=null,src="https://npm.elemecdn.com/akiblog@1.0.1/img/loading.gif"' alt="cover of previous post"><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">SAO UI Plan -- SAO Utils Web 1.0</div></div></div></div><div class="next-post pull-right"><a href="javascript:void(0);" rel="external nofollow noreferrer" onclick="SAONotify(&quot;Next Post&quot;,&quot;是否跳转至下一篇：&lt;br&gt;SAO UI Plan -- Ranklist&quot;,&quot;pjax.loadUrl('/posts/b7126498/')&quot;)" title="SAO UI Plan -- Ranklist"><i class="fas fa-chevron-right next-icon"><div class="next-label">下一篇</div></i></a><div class="pagination-card"><img class="next-cover" src="" data-lazy-src="https://npm.elemecdn.com/akilar-candyassets/image/SAO-UI-PLAN-Ranklist-da2c798a.png" onerror='onerror=null,src="https://npm.elemecdn.com/akiblog@1.0.1/img/loading.gif"' alt="cover of next post"><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">SAO UI Plan -- Ranklist</div></div></div></div></nav><div class="business-center"><div class="business-card"><div class="business-flip"><div class="business-front"><div class="business-strip-bottom"></div><div class="business-strip-top"></div><img class="business-logo" width="80" height="80" src="" data-lazy-src="https://npm.elemecdn.com/akiblog@1.0.1/img/cardcode.png" alt="cardcode"><div class="business-Invitation">Invitation</div><div class="business-chip"><div class="business-chip-line"></div><div class="business-chip-line"></div><div class="business-chip-line"></div><div class="business-chip-line"></div><div class="business-chip-main"></div></div><svg class="business-wave" viewBox="0 3.71 26.959 38.787" width="26.959" height="38.787" fill="white"><path d="M19.709 3.719c.266.043.5.187.656.406 4.125 5.207 6.594 11.781 6.594 18.938 0 7.156-2.469 13.73-6.594 18.937-.195.336-.57.531-.957.492a.9946.9946 0 0 1-.851-.66c-.129-.367-.035-.777.246-1.051 3.855-4.867 6.156-11.023 6.156-17.718 0-6.696-2.301-12.852-6.156-17.719-.262-.317-.301-.762-.102-1.121.204-.36.602-.559 1.008-.504z"></path><path d="M13.74 7.563c.231.039.442.164.594.343 3.508 4.059 5.625 9.371 5.625 15.157 0 5.785-2.113 11.097-5.625 15.156-.363.422-1 .472-1.422.109-.422-.363-.472-1-.109-1.422 3.211-3.711 5.156-8.551 5.156-13.843 0-5.293-1.949-10.133-5.156-13.844-.27-.309-.324-.75-.141-1.114.188-.367.578-.582.985-.542h.093z"></path><path d="M7.584 11.438c.227.031.438.144.594.312 2.953 2.863 4.781 6.875 4.781 11.313 0 4.433-1.828 8.449-4.781 11.312-.398.387-1.035.383-1.422-.016-.387-.398-.383-1.035.016-1.421 2.582-2.504 4.187-5.993 4.187-9.875 0-3.883-1.605-7.372-4.187-9.875-.321-.282-.426-.739-.266-1.133.164-.395.559-.641.984-.617h.094zM1.178 15.531c.121.02.238.063.344.125 2.633 1.414 4.437 4.215 4.437 7.407 0 3.195-1.797 5.996-4.437 7.406-.492.258-1.102.07-1.36-.422-.257-.492-.07-1.102.422-1.359 2.012-1.075 3.375-3.176 3.375-5.625 0-2.446-1.371-4.551-3.375-5.625-.441-.204-.676-.692-.551-1.165.122-.468.567-.785 1.051-.742h.094z"></path></svg><div class="business-card-number"><div class="business-section">Akilar</div><div class="business-section">589330978</div></div><div class="business-end"><span class="business-end-text">created:</span><span class="business-end-date">14/10/2022</span></div><div class="business-card-holder">Welcome to Candyhome</div><div class="business-master"><div class="business-circle business-master-red"></div><div class="business-circle business-master-yellow"></div></div></div><div class="business-back"><div class="business-strip-black"></div><div class="business-ccv"><label>sitelink</label><div><a target="_blank" rel="noopener external nofollow noreferrer" href="https://jq.qq.com/?_wv=1027&k=5o4Iga8D">加入群聊【🧊Akilarの糖果屋🍭】</a></div></div><div class="business-terms"><p>Use this card to join the candyhome and participate in a pleasant discussion together .</p><p>Welcome to Akilar's candyhome,wish you a nice day .</p></div></div></div></div></div><hr><div id="post-comment"><div class="comment-head"><div class="comment-headline"><i class="fas fa-comments fa-fw"></i> <span>评论</span></div></div><div class="comment-wrap"><div><div id="twikoo-wrap"></div></div></div></div></div><div class="aside-content" id="aside-content"><div class="card-widget card-author"><div class="item-headline"><i class="fa-solid fa-circle-user"></i><span>作者信息</span></div><div class="author-main-content"><div class="author-check-content"><label class="author-info" for="author-info"><input id="author-info" type="checkbox" name="author-info"><div class="author-avatar"><img src="" data-lazy-src="https://npm.elemecdn.com/akiblog@1.0.1/img/author.webp" onerror='this.onerror=null,this.src="https://npm.elemecdn.com/akiblog@1.0.1/img/404.gif"' alt="avatar"></div><div class="author-name">Akilar</div></label></div><div class="author-switch-content"><input class="switch-content" type="radio" name="switch-content" value="description"><label class="author-description-box"><div class="author-description">流水幽吟绕耳边，<br>煦风馨语抚心弦，<br>挥臂欲揽冰钩月，<br>银星斟酌醉人涎。</div></label><input class="switch-content" type="radio" name="switch-content" value="social" checked><label class="author-social-box"><a class="card-author-button" target="_blank" rel="noopener external nofollow noreferrer" href="https://jq.qq.com/?_wv=1027&amp;k=tNuEdliQ"><i class="fa fa-paper-plane faa-tada"></i><span>加入糖果屋群聊</span></a><div class="social-icons"><a class="social-icon faa-parent animated-hover" href="https://github.com/Akilarlxh" rel="external nofollow noreferrer" target="_blank" title="Github"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-identity-01"></use></svg></a><a class="social-icon faa-parent animated-hover" href="mailto:Akilarlxh@gmail.com" rel="external nofollow noreferrer" target="_blank" title="Email"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-Openmail-01"></use></svg></a><a class="social-icon faa-parent animated-hover" href="https://space.bilibili.com/22976782" rel="external nofollow noreferrer" target="_blank" title="Bilibili"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-film-01"></use></svg></a><a class="social-icon faa-parent animated-hover" href="https://music.163.com/#/user/home?id=292643778" rel="external nofollow noreferrer" target="_blank" title="Cloudmusic"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-songlist-01"></use></svg></a><a class="social-icon faa-parent animated-hover" href="/atom.xml" target="_blank" title="RSS"><svg class="icon faa-tada" aria-hidden="true"><use xlink:href="#icon-pushpin-01"></use></svg></a></div></label><input class="switch-content" type="radio" name="switch-content" value="site-data"><label class="author-data-box"><div class="site-data"><a class="data-item" href="/archives/"><div class="data-name">文章</div><div class="data-length">480</div></a><a class="data-item" href="/tags/"><div class="data-name">标签</div><div class="data-length">63</div></a><a class="data-item" href="/categories/"><div class="data-name">分类</div><div class="data-length">6</div></a></div></label></div></div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E8%B5%84%E6%BA%90%E4%B8%8B%E8%BD%BD"><span class="toc-number">1.</span> <span class="toc-text">资源下载</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%86%99%E5%9C%A8%E6%9C%80%E5%89%8D"><span class="toc-number">2.</span> <span class="toc-text">写在最前</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%95%99%E7%A8%8B%E6%AD%A3%E6%96%87"><span class="toc-number">3.</span> <span class="toc-text">教程正文</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E8%87%AA%E5%AE%9A%E4%B9%89%E8%84%9A%E6%9C%AC%E6%8B%93%E5%B1%95"><span class="toc-number">4.</span> <span class="toc-text">自定义脚本拓展</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#TO-DO"><span class="toc-number">5.</span> <span class="toc-text">TO DO</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%90%8E%E6%97%A5%E8%B0%88"><span class="toc-number">6.</span> <span class="toc-text">后日谈</span></a></li></ol></div></div><div class="card-widget card-recommend-post"><div class="item-headline"><i class="fas fa-dharmachakra"></i><span>相关推荐</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/posts/e5cda1b6/" title="将单调的作者卡片UI重写，改成翻转形式的游戏角色属性面板。"><img src="" data-lazy-src="https://img.zcool.cn/community/0183d061dd8ce511013e8cd04451eb.jpg?x-oss-process=image/auto-orient,1/resize,m_lfit,w_1280,limit_1/sharpen,100/format,webp/quality,q_100" alt="将单调的作者卡片UI重写，改成翻转形式的游戏角色属性面板。"></a><div class="content"><a class="title" href="/posts/e5cda1b6/" title="SAO-UI-PLAN--Card-Player">SAO-UI-PLAN--Card-Player</a><time datetime="2021-08-02" title="发表于 2021-08-02">2021-08-02</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/posts/eb030e5a/" title="纯CSS实现侧栏美化风格。其实就是单纯用了几个伪类做了个梯形突出。"><img src="" data-lazy-src="https://img.zcool.cn/community/01f28461e1626511013f01cd1d05d8.jpg?x-oss-process=image/auto-orient,1/resize,m_lfit,w_1280,limit_1/sharpen,100/format,webp/quality,q_100" alt="纯CSS实现侧栏美化风格。其实就是单纯用了几个伪类做了个梯形突出。"></a><div class="content"><a class="title" href="/posts/eb030e5a/" title="SAO-UI-PLAN-Card-Widget">SAO-UI-PLAN-Card-Widget</a><time datetime="2021-07-30" title="发表于 2021-07-30">2021-07-30</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/posts/bcc5375/" title="悬浮按钮菜单测试版，如果是执着于干掉侧栏按钮的可以考虑用一下。"><img src="" data-lazy-src="https://img.zcool.cn/community/01a6b161e1626511013f01cd9953a2.jpg?x-oss-process=image/auto-orient,1/resize,m_lfit,w_1280,limit_1/sharpen,100/format,webp/quality,q_100" alt="悬浮按钮菜单测试版，如果是执着于干掉侧栏按钮的可以考虑用一下。"></a><div class="content"><a class="title" href="/posts/bcc5375/" title="SAO-UI-PLAN-Controlldot">SAO-UI-PLAN-Controlldot</a><time datetime="2022-03-22" title="发表于 2022-03-22">2022-03-22</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/posts/1b4fa1dd/" title="经典的刀剑神域风格的加载动画。LINK START !"><img src="" data-lazy-src="https://npm.elemecdn.com/akilar-candyassets/image/linkstart.gif" alt="经典的刀剑神域风格的加载动画。LINK START !"></a><div class="content"><a class="title" href="/posts/1b4fa1dd/" title="SAO-UI-PLAN-LINK-START">SAO-UI-PLAN-LINK-START</a><time datetime="2022-03-28" title="发表于 2022-03-28">2022-03-28</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/posts/d0d69f76/" title="因为太喜欢当初做的弹窗彩蛋了，所以特地拿出来做成单独的函数方法。"><img src="" data-lazy-src="https://npm.elemecdn.com/akilar-candyassets/image/6b748756.png" alt="因为太喜欢当初做的弹窗彩蛋了，所以特地拿出来做成单独的函数方法。"></a><div class="content"><a class="title" href="/posts/d0d69f76/" title="SAO-UI-PLAN-Notify">SAO-UI-PLAN-Notify</a><time datetime="2022-03-21" title="发表于 2022-03-21">2022-03-21</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/posts/88cb79ef/" title="对于整合顶栏侧栏还有侧栏小菜单的整体设计企划。记录一下想法。"><img src="" data-lazy-src="https://npm.elemecdn.com/akilar-candyassets/image/20201115152231.png" alt="对于整合顶栏侧栏还有侧栏小菜单的整体设计企划。记录一下想法。"></a><div class="content"><a class="title" href="/posts/88cb79ef/" title="SAO-UI-PLAN-控制面板企划">SAO-UI-PLAN-控制面板企划</a><time datetime="2022-12-12" title="发表于 2022-12-12">2022-12-12</time></div></div></div></div></div></div></main><footer id="footer"><div id="ark-footer-wraper"><div class="ark-footer-container"><div class="ark-footer-left-corner"><div id="ark-footer-bdage-container"><div class="ark-footer-bdage swiper-wrapper"><a class="ark-bdage-item swiper-slide" href="https://hexo.io/" rel="external nofollow noreferrer" title="博客框架为Hexo_v6.2.0" target="_blank"><svg class="icon ark-decoration" aria-hidden="true"><use xlink:href="#icon-hexo"></use></svg><span>Frame-Hexo</span></a><a class="ark-bdage-item swiper-slide" href="https://butterfly.js.org/" rel="external nofollow noreferrer" title="主题版本Butterfly_v4.4.0" target="_blank"><svg class="icon ark-decoration" aria-hidden="true"><use xlink:href="#icon-Butterfly"></use></svg><span>Theme-Butterfly</span></a><a class="ark-bdage-item swiper-slide" href="https://www.jsdelivr.com/" rel="external nofollow noreferrer" title="本站使用JsDelivr为静态资源提供CDN加速" target="_blank"><svg class="icon ark-decoration" aria-hidden="true"><use xlink:href="#icon-jsdelivr"></use></svg><span>CDN-jsDelivr</span></a><a class="ark-bdage-item swiper-slide" href="https://console.dogecloud.com/" rel="external nofollow noreferrer" title="本网站由多吉云提供CDN加速服务" target="_blank"><svg class="icon ark-decoration" aria-hidden="true"><use xlink:href="#icon-DOGE"></use></svg><span>CDN-dogecloud</span></a><a class="ark-bdage-item swiper-slide" href="https://beian.miit.gov.cn" title="本站已在工信部备案，备案号浙ICP备-2021026687号" target="_blank"><svg class="icon ark-decoration" aria-hidden="true"><use xlink:href="#icon-a-255_icp-license"></use></svg><span>ICP-2021026687-1</span></a><a class="ark-bdage-item swiper-slide" href="https://icp.gov.moe/?keyword=20212887" title="本站已加入萌ICP豪华套餐，萌ICP备20212887号" target="_blank"><svg class="icon ark-decoration" aria-hidden="true"><use xlink:href="#icon-space_demo_equipment"></use></svg><span>moeICP-20212887</span></a><a class="ark-bdage-item swiper-slide" href="https://www.netlify.com/" rel="external nofollow noreferrer" title="本站默认线路托管于Netlify" target="_blank"><svg class="icon ark-decoration" aria-hidden="true"><use xlink:href="#icon-netlify"></use></svg><span>Hosted-Netlify</span></a><a class="ark-bdage-item swiper-slide" href="https://github.com/" rel="external nofollow noreferrer" title="本站项目由Github托管" target="_blank"><svg class="icon ark-decoration" aria-hidden="true"><use xlink:href="#icon-GitHub"></use></svg><span>Source-Github</span></a><a class="ark-bdage-item swiper-slide" href="http://creativecommons.org/licenses/by-nc-sa/4.0/" rel="external nofollow noreferrer" title="本站采用知识共享署名-非商业性使用-相同方式共享4.0国际许可协议进行许可" target="_blank"><svg class="icon ark-decoration" aria-hidden="true"><use xlink:href="#icon-copyright"></use></svg><span>Copyright-BY-NC-SA-4</span></a></div></div><div class="ark-footer-copyright">&copy;2016 - 2023 By Akilar</div><a class="ark-footer-record" target="_blank" rel="noopener" href="https://beian.miit.gov.cn" title="浙ICP备-2021026687号">浙ICP备-2021026687号</a></div><div class="ark-footer-right-corner"><div id="workboard"></div><script async src="/js/custom/runtime.js"></script></div></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open faa-pulse animated-hover"></i><span>阅读模式</span></button><button id="translateLink" type="button" title="简繁转换"><i>繁</i><span>简繁转换</span></button><a class="icon-V hidden" onclick="switchNightMode()" title="昼夜切换"><svg class="faa-pulse animated-hover" width="25" height="25" viewBox="0 0 1024 1024"><use id="modeicon" xlink:href="#icon-moon"></use></svg><span>昼夜切换</span></a><button id="hide-aside-btn" type="button" title="侧栏显隐"><i class="fas fa-arrows-alt-h faa-pulse animated-hover"></i><span>侧栏显隐</span></button><button id="SAO_Utils_Switch" type="button" title="右键开关" onclick="panelAudio(),SAOSwitch()"><i class="fas fa-mouse faa-pulse animated-hover"></i><span>右键开关</span></button><button id="SAO_Utils_Refresh" type="button" title="点击刷新" onclick="panelAudio(),fetchCommits()"><i class="fa-solid fa-arrows-rotate faa-pulse animated-hover"></i><span>点击刷新</span></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin faa-pulse animated-hover"></i><span>设置</span></button><button id="ranklist_show" type="button" title="打赏榜单" onclick="panelAudio(),RanklistBtn()"><i class="fas fa-fire-alt faa-pulse animated-hover"></i><span>打赏榜单</span></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul faa-pulse animated-hover"></i><span>目录</span></button><button id="chat_btn" type="button" title="与我联系"><i class="fas fa-sms faa-pulse animated-hover"></i><span>与我联系</span></button><button id="to_comment" type="button" title="直达评论" onclick="FixedCommentBtn()"><i class="fas fa-comments faa-pulse animated-hover"></i><span>直达评论</span></button><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up faa-pulse animated-hover"></i><span>回到顶部</span></button></div></div><div id="algolia-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">搜索</span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="search-wrap"><div id="algolia-search-input"></div><hr><div id="algolia-search-results"><div id="algolia-hits"></div><div id="algolia-pagination"></div><div id="algolia-info"><div class="algolia-stats"></div><div class="algolia-poweredBy"></div></div></div></div></div><div id="search-mask"></div></div><div><script async src="https://npm.elemecdn.com/akiblog@1.0.1/js/custom/async.js"></script><script src="https://npm.elemecdn.com/akiblog@1.0.1/js/utils.js"></script><script src="https://npm.elemecdn.com/akiblog@1.0.1/js/main.js"></script><script defer src="https://npm.elemecdn.com/swiper@8.4.2/swiper-bundle.min.js"></script><script defer data-pjax src="/js/custom/swiper_init.js"></script><script src="https://npm.elemecdn.com/akiblog@1.0.1/js/tw_cn.js"></script><script src="https://npm.elemecdn.com/medium-zoom@1.0.6/dist/medium-zoom.min.js"></script><script src="https://npm.elemecdn.com/instant.page@5.1.1/instantpage.js" type="module"></script><script src="https://npm.elemecdn.com/vanilla-lazyload@17.3.1/dist/lazyload.iife.min.js"></script><script src="https://npm.elemecdn.com/node-snackbar@0.1.16/dist/snackbar.min.js"></script><script src="https://npm.elemecdn.com/algoliasearch@4.14.2/dist/algoliasearch-lite.umd.js"></script><script src="https://npm.elemecdn.com/instantsearch.js@4.44.0/dist/instantsearch.production.min.js"></script><script src="https://npm.elemecdn.com/akiblog@1.0.1/js/search/algolia.js"></script><div class="pjax-reload"><script async>var preloader={endLoading:()=>{if(document.body.style.overflow="auto",document.getElementById("loading-box").style.transition="opacity 3s",document.getElementById("loading-box").style.opacity="0",setTimeout((function(){document.getElementById("loading-box").classList.add("loaded")}),3e3),sessionStorage.getItem("isReload"))return!0;sessionStorage.setItem("isReload",!0),SAONotify("Welcome","欢迎光临糖果屋<br>愿你享受愉快的一天")},initLoading:()=>{document.body.style.overflow="",document.getElementById("loading-box").style.transition="",document.getElementById("loading-box").style.opacity="1",document.getElementById("loading-box").classList.remove("loaded")}};window.addEventListener("load",()=>{preloader.endLoading()}),document.getElementById("loading-box").addEventListener("click",()=>{preloader.endLoading()}),setTimeout((function(){preloader.endLoading()}),3e3)</script></div><div class="js-pjax"><script>(()=>{const t=()=>{twikoo.init(Object.assign({el:"#twikoo-wrap",envId:"https://twikoo-service.akilar.top",region:"",onCommentLoaded:function(){btf.loadLightbox(document.querySelectorAll("#twikoo .tk-content img:not(.tk-owo-emotion)"))}},null))},o=()=>{"object"!=typeof twikoo?getScript("https://npm.elemecdn.com/twikoo@1.6.5/dist/twikoo.all.min.js").then(t):setTimeout(t,0)};btf.loadComment(document.getElementById("twikoo-wrap"),o)})()</script></div><script>window.addEventListener("load",()=>{const e=e=>{let t="";if(e.length)for(let n=0;n<e.length;n++){t+="<div class='aside-list-item'>";{const a="data-lazy-src";t+=`<a href='${e[n].url}' class='thumbnail'><img ${a}='${e[n].avatar}' alt='${e[n].nick}'></a>`}t+=`<div class='content'>\n        <a class='comment' href='${e[n].url}' title='${e[n].content}'>${e[n].content}</a>\n        <div class='name'><span>${e[n].nick} / </span><time datetime="${e[n].date}">${btf.diffDate(e[n].date,!0)}</time></div>\n        </div></div>`}else t+="没有评论";let n=document.querySelector("#card-newest-comments .aside-list");n.innerHTML=t,window.lazyLoadInstance&&window.lazyLoadInstance.update(),window.pjax&&window.pjax.refresh(n)},t=()=>{if(document.querySelector("#card-newest-comments .aside-list")){const t=saveToLocal.get("twikoo-newest-comments");t?e(JSON.parse(t)):(()=>{const t=()=>{twikoo.getRecentComments({envId:"https://twikoo-service.akilar.top",region:"",pageSize:5,includeReply:!0}).then((function(t){const n=t.map(e=>{return{content:(t=e.comment,""===t||(t=(t=(t=(t=t.replace(/<img.*?src="(.*?)"?[^\>]+>/gi,"[图片]")).replace(/<a[^>]+?href=["']?([^"']+)["']?[^>]*>([^<]+)<\/a>/gi,"[链接]")).replace(/<pre><code>.*?<\/pre>/gi,"[代码]")).replace(/<[^>]+>/g,"")).length>150&&(t=t.substring(0,150)+"..."),t),avatar:e.avatar,nick:e.nick,url:e.url+"#"+e.id,date:new Date(e.created).toISOString()};var t});saveToLocal.set("twikoo-newest-comments",JSON.stringify(n),10/1440),e(n)})).catch((function(e){document.querySelector("#card-newest-comments .aside-list").innerHTML="无法获取评论，请确认相关配置是否正确"}))};"object"==typeof twikoo?t():getScript("https://npm.elemecdn.com/twikoo@1.6.5/dist/twikoo.all.min.js").then(t)})()}};t(),document.addEventListener("pjax:complete",t)})</script><script src="https://npm.elemecdn.com/akiblog@1.0.1/js/custom/sun_moon.js" async></script><script async data-pjax src="https://npm.elemecdn.com/akiblog@1.0.1/js/custom/SAO-NAV.js"></script><script>WIDGET={CONFIG:{modules:"012",background:"5",tmpColor:"FFFFFF",tmpSize:"16",cityColor:"FFFFFF",citySize:"16",aqiColor:"FFFFFF",aqiSize:"16",weatherIconSize:"24",alertIconSize:"18",padding:"10px 10px 10px 10px",shadow:"0",language:"auto",fixed:"false",vertical:"top",horizontal:"left",key:"3da94e567f5e4e88baf90f066f0893c2"}}</script><script defer data-pjax src="https://widget.heweather.net/simple/static/js/he-simple.js?v=1.4.0"></script><script async src="https://npm.elemecdn.com/akiblog@1.0.1/js/custom/random.js"></script><script defer src="https://at.alicdn.com/t/c/font_3344355_e443xsjcmum.js"></script><script src="//code.tidio.co/wgamdwbirypo8casl6rjgtfbs47ny3s7.js" async></script><script>function onTidioChatApiReady(){window.tidioChatApi.hide(),window.tidioChatApi.on("close",(function(){window.tidioChatApi.hide()}))}window.tidioChatApi?window.tidioChatApi.on("ready",onTidioChatApiReady):document.addEventListener("tidioChat-ready",onTidioChatApiReady);var chatBtnFn=()=>{document.getElementById("chat_btn").addEventListener("click",(function(){window.tidioChatApi.show(),window.tidioChatApi.open()}))};chatBtnFn()</script><script src="https://npm.elemecdn.com/pjax@0.2.8/pjax.min.js"></script><script>let pjaxSelectors=["head > title","#config-diff","#body-wrap","#rightside-config-hide","#rightside-config-show",".js-pjax","#web_bg","#fixedcard-dashboard"];var pjax=new Pjax({elements:'a:not([target="_blank"])',selectors:pjaxSelectors,cacheBust:!1,analytics:!1,scrollRestoration:!1});document.addEventListener("pjax:send",(function(){if(window.tocScrollFn&&window.removeEventListener("scroll",window.tocScrollFn),window.scrollCollect&&window.removeEventListener("scroll",scrollCollect),"object"==typeof preloader&&preloader.initLoading(),document.getElementById("rightside").style.cssText="opacity: ''; transform: ''",window.aplayers)for(let e=0;e<window.aplayers.length;e++)window.aplayers[e].options.fixed||window.aplayers[e].destroy();"object"==typeof typed&&typed.destroy();const e=document.body.classList;e.contains("read-mode")&&e.remove("read-mode"),"object"==typeof disqusjs&&disqusjs.destroy()})),document.addEventListener("pjax:complete",(function(){window.refreshFn(),document.querySelectorAll("script[data-pjax], .pjax-reload script").forEach(e=>{const t=document.createElement("script"),o=e.text||e.textContent||e.innerHTML||"";Array.from(e.attributes).forEach(e=>t.setAttribute(e.name,e.value)),t.appendChild(document.createTextNode(o)),e.parentNode.replaceChild(t,e)}),GLOBAL_CONFIG.islazyload&&window.lazyLoadInstance.update(),"function"==typeof chatBtnFn&&chatBtnFn(),"function"==typeof panguInit&&panguInit(),"function"==typeof gtag&&gtag("config","",{page_path:window.location.pathname}),"object"==typeof _hmt&&_hmt.push(["_trackPageview",window.location.pathname]),"function"==typeof loadMeting&&document.getElementsByClassName("aplayer").length&&loadMeting(),"object"==typeof Prism&&Prism.highlightAll(),"object"==typeof preloader&&preloader.endLoading()})),document.addEventListener("pjax:error",e=>{404===e.request.status&&pjax.loadUrl("/404.html")})</script><script>"serviceWorker"in navigator&&(navigator.serviceWorker.controller&&navigator.serviceWorker.addEventListener("controllerchange",(function(){fetch("/json/commits.json").then(e=>e.json().then(e=>{for(var r=e,o=0;o<r.length;o++){r[o];var t=o+1+"."+r[o].commit.message;if(o<1)var n=t;else n=n+"<br>"+t}SAONotify("Latest Update",n,"location.reload(true);")})).catch(console.error)})),window.addEventListener("load",(function(){navigator.serviceWorker.register("/sw.js")})))</script><div id="SAO-back"><div id="SAO-menu"><div id="SAO-menu-content"><div class="utils-list"><div class="utils-list-item"><div class="user-panel" style="top:undefined"><div class="user-panel-name">Friends</div><div class="user-panel-img"><img src="" data-lazy-src="/img/info.png"></div><div class="user-panel-properties">Welcome to Akilar の Candyhome !</div></div><i class="fas fa-address-book" onclick="panelAudio(),UtilsClick()"></i><div class="menu-list" style="top:-83px"><div class="menu-list-item"><i class="fa fa-link" onclick='clickAudio(),setTimeout((function(){SAOclose(),linkStart("/link/")}),500)'>Link</i></div><div class="menu-list-item"><i class="fas fa-fire-alt" onclick="clickAudio(),setTimeout((function(){SAOclose(),RanklistBtn()}),500)">Pantner</i></div></div></div><div class="utils-list-item"><div class="user-panel" style="top:undefined"><div class="user-panel-name">Help</div><div class="user-panel-img"><img src="" data-lazy-src="/img/info.png"></div><div class="user-panel-properties"><h4>Anything can I help you ?</h4><p>Tidio：开启在线聊天窗<br>Comment：直达评论区或留言板<br>Candyhome：加入糖果屋QQ群</p></div></div><i class="fa fa-question-circle" onclick="panelAudio(),UtilsClick()"></i><div class="menu-list" style="top:-103px"><div class="menu-list-item"><i class="fa fa-comment-dots" onclick="clickAudio(),setTimeout((function(){SAOclose(),openTidio()}),500)">Tidio</i></div><div class="menu-list-item"><i class="fa fa-comments" onclick="clickAudio(),setTimeout((function(){SAOclose(),FixedCommentBtn()}),500)">Comments</i></div><div class="menu-list-item"><i class="fa fa-user-friends" onclick='clickAudio(),setTimeout((function(){SAOclose(),linkStart("https://jq.qq.com/?_wv=1027&amp;k=a08BZRzs")}),500)'>Candyhome</i></div></div></div><div class="utils-list-item"><div class="user-panel" style="top:undefined"><div class="user-panel-name">Menu</div><div class="user-panel-img"><img src="" data-lazy-src="/img/info.png"></div><div class="user-panel-properties">The menu of my blog</div></div><i class="fa fa-tasks" onclick="panelAudio(),UtilsClick()"></i><div class="menu-list" style="top:-163px"><div class="menu-list-item"><i class="fa fa-home" onclick='clickAudio(),setTimeout((function(){SAOclose(),linkStart("https://blog.akilar.top/")}),500)'>Home</i></div><div class="menu-list-item"><i class="fa fa-folder-open" onclick="panelAudio(),MenusClick()">Document</i><div class="menu-child" style="top:-100px"><div class="menu-list-child"><i class="fa fa-file-invoice" onclick='clickAudio(),setTimeout((function(){SAOclose(),linkStart("/posts/f99b208/")}),500)'>Beautify</i></div><div class="menu-list-child"><i class="fa fa-file-invoice" onclick='clickAudio(),setTimeout((function(){SAOclose(),linkStart("/posts/7c16c4bb/")}),500)'>Optimize</i></div><div class="menu-list-child"><i class="fa fa-file-invoice" onclick='clickAudio(),setTimeout((function(){SAOclose(),linkStart("/posts/615e2dec/")}),500)'>Tag_Plugins</i></div><div class="menu-list-child"><i class="fa fa-file-invoice" onclick='clickAudio(),setTimeout((function(){SAOclose(),linkStart("/posts/6ef63e2d/")}),500)'>Construct</i></div></div></div><div class="menu-list-item"><i class="fa fa-blog" onclick='clickAudio(),setTimeout((function(){SAOclose(),linkStart("/")}),500)'>Blog</i></div><div class="menu-list-item"><i class="fa fa-archive" onclick='clickAudio(),setTimeout((function(){SAOclose(),linkStart("/archives/")}),500)'>Archives</i></div><div class="menu-list-item"><i class="fa fa-folder-open" onclick='clickAudio(),setTimeout((function(){SAOclose(),linkStart("/categories/")}),500)'>Categoties</i></div><div class="menu-list-item"><i class="fa fa-tags" onclick='clickAudio(),setTimeout((function(){SAOclose(),linkStart("/tags/")}),500)'>Tags</i></div></div></div><div class="utils-list-item"><div class="user-panel" style="top:undefined"><div class="user-panel-name">Options</div><div class="user-panel-img"><img src="" data-lazy-src="/img/info.png"></div><div class="user-panel-properties"><h4>Some userful scripts</h4><p>Random： 随机跳转站内文章<br>Search： 打开搜索窗口</p>Refresh： 刷新缓存</div></div><i class="fa fa-tools" onclick="panelAudio(),UtilsClick()"></i><div class="menu-list" style="top:-103px"><div class="menu-list-item"><i class="fa fa-random" onclick='clickAudio(),setTimeout((function(){SAOclose(),linkStart("/toRandomPost()")}),500)'>Random</i></div><div class="menu-list-item"><i class="fa fa-search" onclick="clickAudio(),setTimeout((function(){SAOclose(),openSearch()}),500)">Search</i></div><div class="menu-list-item"><i class="fa-solid fa-arrows-rotate" onclick='clickAudio(),setTimeout((function(){SAOclose(),SAONotify("Refresh","即将为您刷新页面缓存","location.reload(true);")}),500)'>Refresh</i></div></div></div><div class="utils-list-item"><div class="user-panel"><div class="user-panel-name">Instructions</div><div class="user-panel-img"><img src="" data-lazy-src="/img/siteicon/favicon.png"></div><div class="user-panel-properties"><h4>欢迎使用SAO_Utils_Web 2.0</h4><p>点按选项可以持续显示下级菜单。您可以通过按住<kbd>ctrl</kbd>+<kbd>右键</kbd>来恢复使用原生右键菜单，更多内容可点击右侧Option按钮访问教程或Help按钮加入糖果屋QQ群。</p><center>©Akilarの糖果屋</center></div></div><i class="fa fa-cog" onclick="panelAudio(),UtilsClick()"></i><div class="menu-list" style="top:-103px"><div class="menu-list-item"><i class="fa fa-tools" onclick='clickAudio(),setTimeout((function(){SAOclose(),linkStart("https://akilar.top/posts/fd243d7/")}),500)'>Option</i></div><div class="menu-list-item"><i class="fa fa-question-circle" onclick='clickAudio(),setTimeout((function(){SAOclose(),linkStart("https://jq.qq.com/?_wv=1027&amp;k=a08BZRzs")}),500)'>Help</i></div><div class="menu-list-item"><i class="fa fa-sign-out-alt" onclick="alertAudio(),openLogout()">Logout</i></div></div></div><div class="utils-list-item"><i class="fa fa-power-off" onclick="alertAudio(),SAOKeepOff()" title="永久关闭SAO右键菜单"></i></div></div></div></div></div><div id="SAO-logout"><div class="logout-title">Alert</div><div class="logout-alert">是否确认退出?</div><div class="logout-button"><span class="logout-confirm"><button class="far fa-circle" type="button" name="confirm" onclick="clickAudio(),confirmLogout()"></button></span><span class="logout-cancel"><button class="fa fa-times" type="button" name="cancel" onclick="panelAudio(),cancelLogout()"></button></span></div></div><audio id="SAOlauncher" src="https://npm.elemecdn.com/akilar-candyassets/audio/Launcher.mp3"></audio><audio id="SAOClick" src="https://npm.elemecdn.com/akilar-candyassets/audio/Click.mp3"></audio><audio id="SAOPanel" src="https://npm.elemecdn.com/akilar-candyassets/audio/Panel.mp3"></audio><audio id="SAOAlert" src="https://npm.elemecdn.com/akilar-candyassets/audio/Alert.mp3"></audio><script async src="https://npm.elemecdn.com/akiblog@1.0.1/js/custom/SAO_Menu.js"></script><div id="SAO-ranklist"><div class="ranklist-title">Rank list</div><div class="ranklist-main"><div class="master-item"><div class="master-rank"><i class="fa fa-plus" onclick="panelAudio(),RanklistBtn()"></i></div><div class="master-user"><a alt="" href="/">Akilar<div class="rank-reward"><div class="reward-img"><img alt="" src="" data-lazy-src="https://npm.elemecdn.com/akiblog@1.0.1/img/wechat.png"><a class="reward-text" alt="" href="/null">wechat</a></div><div class="reward-img"><img alt="" src="" data-lazy-src="https://npm.elemecdn.com/akiblog@1.0.1/img/alipay.png"><a class="reward-text" alt="" href="/null">alipay</a></div></div></a></div><div class="master-data"><div class="master-HP"><div class="HP-fill" style="width:20%"><div class="HP-fill-in"><span>20%</span></div></div></div></div><div class="master-level"><span>270</span><span>|</span><span>1350</span><span>lv.23</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" href="javascript:void(0);" rel="external nofollow noreferrer" data-title="感谢*蓓打赏的￥180">*蓓</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:100%"><div class="HP-fill-in"><span>100.00%</span></div></div></div></div><div class="partner-level"><span>9200</span><span>|</span><span>9200</span><span>lv.180</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" href="javascript:void(0);" rel="external nofollow noreferrer" data-title="感谢晨打赏的￥8.88">晨</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:88.86%"><div class="HP-fill-in"><span>88.86%</span></div></div></div></div><div class="partner-level"><span>622</span><span>|</span><span>700</span><span>lv.10</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" target="_blank" rel="noopener external nofollow noreferrer" href="https://zfe.space/" data-title="感谢**鄂打赏的￥9.9">**鄂</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:13.76%"><div class="HP-fill-in"><span>13.76%</span></div></div></div></div><div class="partner-level"><span>523</span><span>|</span><span>3800</span><span>lv.72</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" href="javascript:void(0);" rel="external nofollow noreferrer" data-title="感谢*光打赏的￥50">*光</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:92.59%"><div class="HP-fill-in"><span>92.59%</span></div></div></div></div><div class="partner-level"><span>2685</span><span>|</span><span>2900</span><span>lv.54</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" href="javascript:void(0);" rel="external nofollow noreferrer" data-title="感谢*洁打赏的￥30">*洁</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:93.78%"><div class="HP-fill-in"><span>93.78%</span></div></div></div></div><div class="partner-level"><span>1688</span><span>|</span><span>1800</span><span>lv.32</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" href="javascript:void(0);" rel="external nofollow noreferrer" data-title="感谢**焘打赏的￥20">**焘</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:90.92%"><div class="HP-fill-in"><span>90.92%</span></div></div></div></div><div class="partner-level"><span>1182</span><span>|</span><span>1300</span><span>lv.22</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" target="_blank" rel="noopener external nofollow noreferrer" href="https://szsyzx.github.io/" data-title="感谢懒蟲打赏的￥20">懒蟲</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:74.06%"><div class="HP-fill-in"><span>74.06%</span></div></div></div></div><div class="partner-level"><span>1148</span><span>|</span><span>1550</span><span>lv.27</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" href="javascript:void(0);" rel="external nofollow noreferrer" data-title="感谢*i打赏的￥10">*i</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:83.38%"><div class="HP-fill-in"><span>83.38%</span></div></div></div></div><div class="partner-level"><span>667</span><span>|</span><span>800</span><span>lv.12</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" target="_blank" rel="noopener external nofollow noreferrer" href="https://www.acozycotage.net/" data-title="感谢acozycotage打赏的￥10">acozycotage</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:NaN%"><div class="HP-fill-in"><span>NaN%</span></div></div></div></div><div class="partner-level"><span>NaN</span><span>|</span><span>NaN</span><span>lv.undefined</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" href="javascript:void(0);" rel="external nofollow noreferrer" data-title="感谢*因打赏的￥10">*因</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:62.5%"><div class="HP-fill-in"><span>62.50%</span></div></div></div></div><div class="partner-level"><span>625</span><span>|</span><span>1000</span><span>lv.16</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" href="javascript:void(0);" rel="external nofollow noreferrer" data-title="感谢H*g打赏的￥10">H*g</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:83.38%"><div class="HP-fill-in"><span>83.38%</span></div></div></div></div><div class="partner-level"><span>667</span><span>|</span><span>800</span><span>lv.12</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" href="javascript:void(0);" rel="external nofollow noreferrer" data-title="感谢**宁打赏的￥10">**宁</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:45.46%"><div class="HP-fill-in"><span>45.46%</span></div></div></div></div><div class="partner-level"><span>591</span><span>|</span><span>1300</span><span>lv.22</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" target="_blank" rel="noopener external nofollow noreferrer" href="https://www.nesxc.com/" data-title="感谢Nesxc打赏的￥14.88">Nesxc</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:74.42%"><div class="HP-fill-in"><span>74.42%</span></div></div></div></div><div class="partner-level"><span>893</span><span>|</span><span>1200</span><span>lv.20</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" href="javascript:void(0);" rel="external nofollow noreferrer" data-title="感谢J*y打赏的￥2.56">J*y</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:51.11%"><div class="HP-fill-in"><span>51.11%</span></div></div></div></div><div class="partner-level"><span>230</span><span>|</span><span>450</span><span>lv.5</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" target="_blank" rel="noopener external nofollow noreferrer" href="https://www.lbihua.cn" data-title="感谢哔哗打赏的￥10">哔哗</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:62.5%"><div class="HP-fill-in"><span>62.50%</span></div></div></div></div><div class="partner-level"><span>625</span><span>|</span><span>1000</span><span>lv.16</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" target="_blank" rel="noopener external nofollow noreferrer" href="https://iori-yimaga.top" data-title="感谢T*0打赏的￥23.3">T*0</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:93.17%"><div class="HP-fill-in"><span>93.17%</span></div></div></div></div><div class="partner-level"><span>1351</span><span>|</span><span>1450</span><span>lv.25</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" href="javascript:void(0);" rel="external nofollow noreferrer" data-title="感谢**飞打赏的￥20">**飞</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:74.06%"><div class="HP-fill-in"><span>74.06%</span></div></div></div></div><div class="partner-level"><span>1148</span><span>|</span><span>1550</span><span>lv.27</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" href="javascript:void(0);" rel="external nofollow noreferrer" data-title="感谢**豪打赏的￥10">**豪</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:83.38%"><div class="HP-fill-in"><span>83.38%</span></div></div></div></div><div class="partner-level"><span>667</span><span>|</span><span>800</span><span>lv.12</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" target="_blank" rel="noopener external nofollow noreferrer" href="https://www.keyiqingxin.cn" data-title="感谢清心打赏的￥3.88">清心</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:19.42%"><div class="HP-fill-in"><span>19.42%</span></div></div></div></div><div class="partner-level"><span>233</span><span>|</span><span>1200</span><span>lv.20</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" href="javascript:void(0);" rel="external nofollow noreferrer" data-title="感谢鹿栖打赏的￥20">鹿栖</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:74.06%"><div class="HP-fill-in"><span>74.06%</span></div></div></div></div><div class="partner-level"><span>1148</span><span>|</span><span>1550</span><span>lv.27</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" target="_blank" rel="noopener external nofollow noreferrer" href="https://menglei.xyz" data-title="感谢*夢打赏的￥3">*夢</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:27.33%"><div class="HP-fill-in"><span>27.33%</span></div></div></div></div><div class="partner-level"><span>205</span><span>|</span><span>750</span><span>lv.11</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" target="_blank" rel="noopener external nofollow noreferrer" href="https://www.ijinse.cn" data-title="感谢锦瑟打赏的￥50">锦瑟</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:69.45%"><div class="HP-fill-in"><span>69.45%</span></div></div></div></div><div class="partner-level"><span>2639</span><span>|</span><span>3800</span><span>lv.72</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" target="_blank" rel="noopener external nofollow noreferrer" href="https://glann.vip" data-title="感谢glann打赏的￥5.01">glann</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:41.75%"><div class="HP-fill-in"><span>41.75%</span></div></div></div></div><div class="partner-level"><span>334</span><span>|</span><span>800</span><span>lv.12</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" href="javascript:void(0);" rel="external nofollow noreferrer" data-title="感谢**忠打赏的￥4.48">**忠</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:89.56%"><div class="HP-fill-in"><span>89.56%</span></div></div></div></div><div class="partner-level"><span>403</span><span>|</span><span>450</span><span>lv.5</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" target="_blank" rel="noopener external nofollow noreferrer" href="https://huran.xyz" data-title="感谢忽然打赏的￥13.14">忽然</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:87.58%"><div class="HP-fill-in"><span>87.58%</span></div></div></div></div><div class="partner-level"><span>832</span><span>|</span><span>950</span><span>lv.15</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" href="javascript:void(0);" rel="external nofollow noreferrer" data-title="感谢XueZha打赏的￥6.66">XueZha</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:66.57%"><div class="HP-fill-in"><span>66.57%</span></div></div></div></div><div class="partner-level"><span>466</span><span>|</span><span>700</span><span>lv.10</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" href="javascript:void(0);" rel="external nofollow noreferrer" data-title="感谢*葵打赏的￥6.66">*葵</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:66.57%"><div class="HP-fill-in"><span>66.57%</span></div></div></div></div><div class="partner-level"><span>466</span><span>|</span><span>700</span><span>lv.10</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" target="_blank" rel="noopener external nofollow noreferrer" href="https://tianli-blog.club" data-title="感谢天利打赏的￥40.34">天利</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:77.57%"><div class="HP-fill-in"><span>77.57%</span></div></div></div></div><div class="partner-level"><span>2172</span><span>|</span><span>2800</span><span>lv.52</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" target="_blank" rel="noopener external nofollow noreferrer" href="https://bingmeng158.github.io" data-title="感谢冰梦打赏的￥1.5">冰梦</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:30%"><div class="HP-fill-in"><span>30.00%</span></div></div></div></div><div class="partner-level"><span>135</span><span>|</span><span>450</span><span>lv.5</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" target="_blank" rel="noopener external nofollow noreferrer" href="https://0410wzn.top" data-title="感谢WZN打赏的￥1.35">WZN</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:27.11%"><div class="HP-fill-in"><span>27.11%</span></div></div></div></div><div class="partner-level"><span>122</span><span>|</span><span>450</span><span>lv.5</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" href="javascript:void(0);" rel="external nofollow noreferrer" data-title="感谢KD打赏的￥1.5">KD</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:30%"><div class="HP-fill-in"><span>30.00%</span></div></div></div></div><div class="partner-level"><span>135</span><span>|</span><span>450</span><span>lv.5</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" href="javascript:void(0);" rel="external nofollow noreferrer" data-title="感谢**庆打赏的￥3.5">**庆</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:70%"><div class="HP-fill-in"><span>70.00%</span></div></div></div></div><div class="partner-level"><span>315</span><span>|</span><span>450</span><span>lv.5</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" target="_blank" rel="noopener external nofollow noreferrer" href="https://www.sunguoqi.com" data-title="感谢小孙打赏的￥5.2">小孙</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:52%"><div class="HP-fill-in"><span>52.00%</span></div></div></div></div><div class="partner-level"><span>364</span><span>|</span><span>700</span><span>lv.10</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" target="_blank" rel="noopener external nofollow noreferrer" href="https://blog.nalex.top" data-title="感谢rootlex打赏的￥4">rootlex</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:80%"><div class="HP-fill-in"><span>80.00%</span></div></div></div></div><div class="partner-level"><span>360</span><span>|</span><span>450</span><span>lv.5</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" target="_blank" rel="noopener external nofollow noreferrer" href="https://dreamfall.cn" data-title="感谢梦落打赏的￥1.88">梦落</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:37.56%"><div class="HP-fill-in"><span>37.56%</span></div></div></div></div><div class="partner-level"><span>169</span><span>|</span><span>450</span><span>lv.5</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" target="_blank" rel="noopener external nofollow noreferrer" href="https://blog.cyfan.top" data-title="感谢CYF打赏的￥1.5">CYF</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:30%"><div class="HP-fill-in"><span>30.00%</span></div></div></div></div><div class="partner-level"><span>135</span><span>|</span><span>450</span><span>lv.5</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" href="javascript:void(0);" rel="external nofollow noreferrer" data-title="感谢一悲打赏的￥2.5">一悲</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:41.6%"><div class="HP-fill-in"><span>41.60%</span></div></div></div></div><div class="partner-level"><span>208</span><span>|</span><span>500</span><span>lv.6</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" target="_blank" rel="noopener external nofollow noreferrer" href="https://hexo.cf" data-title="感谢八神打赏的￥10">八神</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:83.38%"><div class="HP-fill-in"><span>83.38%</span></div></div></div></div><div class="partner-level"><span>667</span><span>|</span><span>800</span><span>lv.12</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" target="_blank" rel="noopener external nofollow noreferrer" href="https://noionion.top" data-title="感谢贰猹打赏的￥20">贰猹</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:90.92%"><div class="HP-fill-in"><span>90.92%</span></div></div></div></div><div class="partner-level"><span>1182</span><span>|</span><span>1300</span><span>lv.22</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" target="_blank" rel="noopener external nofollow noreferrer" href="https://blog.slqwq.cn" data-title="感谢Hajeekn打赏的￥10">Hajeekn</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:66.63%"><div class="HP-fill-in"><span>66.63%</span></div></div></div></div><div class="partner-level"><span>633</span><span>|</span><span>950</span><span>lv.15</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" target="_blank" rel="noopener external nofollow noreferrer" href="https://baokan0.com" data-title="感谢baokan0打赏的￥20">baokan0</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:95.2%"><div class="HP-fill-in"><span>95.20%</span></div></div></div></div><div class="partner-level"><span>1190</span><span>|</span><span>1250</span><span>lv.21</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" href="javascript:void(0);" rel="external nofollow noreferrer" data-title="感谢h*d打赏的￥10">h*d</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:66.63%"><div class="HP-fill-in"><span>66.63%</span></div></div></div></div><div class="partner-level"><span>633</span><span>|</span><span>950</span><span>lv.15</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" href="javascript:void(0);" rel="external nofollow noreferrer" data-title="感谢**航打赏的￥10">**航</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:66.63%"><div class="HP-fill-in"><span>66.63%</span></div></div></div></div><div class="partner-level"><span>633</span><span>|</span><span>950</span><span>lv.15</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" href="javascript:void(0);" rel="external nofollow noreferrer" data-title="感谢I*u打赏的￥2">I*u</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:40%"><div class="HP-fill-in"><span>40.00%</span></div></div></div></div><div class="partner-level"><span>180</span><span>|</span><span>450</span><span>lv.5</span></div></div><div class="partner-item"><div class="partner-rank"></div><div class="partner-user"><a alt="" href="javascript:void(0);" rel="external nofollow noreferrer" data-title="感谢7*i打赏的￥1">7*i</a></div><div class="partner-data"><div class="partner-HP"><div class="HP-fill" style="width:20%"><div class="HP-fill-in"><span>20.00%</span></div></div></div></div><div class="partner-level"><span>90</span><span>|</span><span>450</span><span>lv.5</span></div></div></div></div><script async src="https://npm.elemecdn.com/akiblog@1.0.1/js/custom/SAO_ranklist.js"></script><div class="pjax-reload"><script async>for(var arr=document.getElementsByClassName("recent-post-item"),i=0;i<arr.length;i++)arr[i].classList.add("wow"),arr[i].classList.add("animate__zoomIn"),arr[i].setAttribute("data-wow-duration",""),arr[i].setAttribute("data-wow-delay",""),arr[i].setAttribute("data-wow-offset",""),arr[i].setAttribute("data-wow-iteration","")</script><script async>for(var arr=document.getElementsByClassName("card-widget"),i=0;i<arr.length;i++)arr[i].classList.add("wow"),arr[i].classList.add("animate__zoomIn"),arr[i].setAttribute("data-wow-duration",""),arr[i].setAttribute("data-wow-delay",""),arr[i].setAttribute("data-wow-offset",""),arr[i].setAttribute("data-wow-iteration","")</script><script async>for(var arr=document.getElementsByClassName("article-sort-item"),i=0;i<arr.length;i++)arr[i].classList.add("wow"),arr[i].classList.add("animate__zoomIn"),arr[i].setAttribute("data-wow-duration",""),arr[i].setAttribute("data-wow-delay",""),arr[i].setAttribute("data-wow-offset",""),arr[i].setAttribute("data-wow-iteration","")</script><script async>for(var arr=document.getElementsByClassName("flink-list-card"),i=0;i<arr.length;i++)arr[i].classList.add("wow"),arr[i].classList.add("animate__flipInY"),arr[i].setAttribute("data-wow-duration","1s"),arr[i].setAttribute("data-wow-delay",""),arr[i].setAttribute("data-wow-offset",""),arr[i].setAttribute("data-wow-iteration","")</script></div><script defer src="https://npm.elemecdn.com/akiblog@1.0.1/js/custom/wow.min.js"></script><script defer src="https://npm.elemecdn.com/akiblog@1.0.1/js/custom/wow_init.js"></script><div id="fixedcard-dashboard"><button class="fixedcard-activebtn" type="button" title="用户信息" onclick="FixedCardWidget(&quot;class&quot;,&quot;card-author&quot;,&quot;0&quot;)"><i class="fas fa-address-book"></i></button><button class="fixedcard-activebtn" type="button" title="相关推荐" onclick="FixedCardWidget(&quot;class&quot;,&quot;card-recommend-post&quot;,&quot;0&quot;)"><i class="fas fa-dharmachakra"></i></button><div class="fixedcard-user-avatar fixedcard-activebtn" onclick="RemoveFixedCardWidget()"><img class="fixedcard-user-avatar-img" src="" data-lazy-src="https://npm.elemecdn.com/akiblog@1.0.1/img/author.webp" title="Akilar"></div></div><script defer data-pjax src="https://npm.elemecdn.com/akiblog@1.0.1/js/custom/fixed_card_widget.js"></script><script defer data-pjax src="https://npm.elemecdn.com/akiblog@1.0.1/js/custom/fixed_comment.js"></script></div><script>var fdata={apiurl:"/json/akifcircle.json",initnumber:20,stepnumber:10,error_img:"https://npm.elemecdn.com/akilar-candyassets/image/404.gif"};localStorage.setItem("fdatalist",JSON.stringify(fdata))</script><script defer src="https://npm.elemecdn.com/hexo-filter-fcircle/assets/js/fetch.js"></script><script data-pjax src="https://npm.elemecdn.com/hexo-filter-gitcalendar/lib/gitcalendar.js"></script><script data-pjax>function gitcalendar_injector_config(){document.getElementById("recent-posts").insertAdjacentHTML("afterbegin",'<div class="recent-post-item" id="gitcalendarBar" style="width:100%;height:auto;padding:10px;"><style>#git_container{min-height: 280px}@media screen and (max-width:650px) {#git_container{min-height: 0px}}</style><div id="git_loading" style="width:10%;height:100%;margin:0 auto;display: block;"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50" xml:space="preserve"><path fill="#d0d0d0" d="M25.251,6.461c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615V6.461z" transform="rotate(275.098 25 25)"><animatetransform attributeType="xml" attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="0.6s" repeatCount="indefinite"></animatetransform></path></svg><style>#git_container{display: none;}</style></div><div id="git_container"></div></div>'),console.log("已挂载gitcalendar")}document.getElementById("recent-posts")&&"/"===location.pathname&&(gitcalendar_injector_config(),GitCalendarInit("/json/akicalendar.json",["#e4dfd7","#f9f4dc","#f7e8aa","#f7e8aa","#f8df72","#fcd217","#fcc515","#f28e16","#fb8b05","#d85916","#f43e06"],"Akilarlxh"))</script></body></html>